public class LoggingStopWatch extends StopWatch implements PerformanceLoggingStopWatch
Constructor and Description |
---|
LoggingStopWatch(String tag) |
LoggingStopWatch(String tag,
Object message) |
Modifier and Type | Method and Description |
---|---|
protected void |
doLog(String message) |
long |
getLoggingThreshold() |
Object |
getMessage() |
long |
getRestartCount() |
long |
getStartTime() |
String |
getTag() |
void |
reset() |
void |
setLoggingThreshold(long loggingThreshold) |
void |
setMessage(Object message) |
void |
start() |
static PerformanceLoggingStopWatch |
startNew(String tag) |
static PerformanceLoggingStopWatch |
startNew(String tag,
Object message) |
static PerformanceLoggingStopWatch |
startNew(String tag,
String pattern,
Object... message) |
void |
stop() |
void |
stop(boolean pause) |
close, getElapsedMilliseconds, getElapsedSeconds, getElapsedTime, getStartMilliseconds, isStarted, startNew, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public LoggingStopWatch(String tag)
public static PerformanceLoggingStopWatch startNew(String tag, Object message)
public static PerformanceLoggingStopWatch startNew(String tag, String pattern, Object... message)
public static PerformanceLoggingStopWatch startNew(String tag)
public long getLoggingThreshold()
getLoggingThreshold
in interface PerformanceLoggingStopWatch
public void setLoggingThreshold(long loggingThreshold)
setLoggingThreshold
in interface PerformanceLoggingStopWatch
public String getTag()
getTag
in interface PerformanceLoggingStopWatch
public Object getMessage()
getMessage
in interface PerformanceLoggingStopWatch
public void setMessage(Object message)
setMessage
in interface PerformanceLoggingStopWatch
public void start()
start
in interface PerformanceLoggingStopWatch
start
in class StopWatch
public void stop(boolean pause)
stop
in interface PerformanceLoggingStopWatch
public long getRestartCount()
getRestartCount
in interface PerformanceLoggingStopWatch
public void reset()
reset
in interface PerformanceLoggingStopWatch
reset
in class StopWatch
public long getStartTime()
getStartTime
in interface PerformanceLoggingStopWatch
getStartTime
in class StopWatch
public void stop()
stop
in interface PerformanceLoggingStopWatch
stop
in class StopWatch
protected void doLog(String message)
Copyright © 2017 Hitachi Vantara. All rights reserved.