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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclosepublic 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 PerformanceLoggingStopWatchpublic void setLoggingThreshold(long loggingThreshold)
setLoggingThreshold in interface PerformanceLoggingStopWatchpublic String getTag()
getTag in interface PerformanceLoggingStopWatchpublic Object getMessage()
getMessage in interface PerformanceLoggingStopWatchpublic void setMessage(Object message)
setMessage in interface PerformanceLoggingStopWatchpublic void start()
start in interface PerformanceLoggingStopWatchstart in class StopWatchpublic void stop(boolean pause)
stop in interface PerformanceLoggingStopWatchpublic long getRestartCount()
getRestartCount in interface PerformanceLoggingStopWatchpublic void reset()
reset in interface PerformanceLoggingStopWatchreset in class StopWatchpublic long getStartTime()
getStartTime in interface PerformanceLoggingStopWatchgetStartTime in class StopWatchpublic void stop()
stop in interface PerformanceLoggingStopWatchstop in class StopWatchprotected void doLog(String message)
Copyright © 2017 Hitachi Vantara. All rights reserved.