org.javasimon.source
Class CachedStopwatchSource<L,K>
java.lang.Object
org.javasimon.source.CachedMonitorSource<L,Stopwatch,K>
org.javasimon.source.CachedStopwatchSource<L,K>
- All Implemented Interfaces:
- MonitorSource<L,Stopwatch>, StopwatchSource<L>
public abstract class CachedStopwatchSource<L,K>
- extends CachedMonitorSource<L,Stopwatch,K>
- implements StopwatchSource<L>
Cached sources using Stopwatch as monitors.
- Since:
- 3.4
- Author:
- Richard "Virgo" Richter
|
Method Summary |
Split |
start(L location)
Convenient method to return split for the location or disabled split, if the location is not monitored. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedStopwatchSource
public CachedStopwatchSource(StopwatchSource<L> delegate)
start
public Split start(L location)
- Description copied from interface:
StopwatchSource
- Convenient method to return split for the location or disabled split, if the location is not monitored.
- Specified by:
start in interface StopwatchSource<L>
- Parameters:
location - location to be monitored
- Returns:
Split for the location or {Split#DISABLED} if the location is not monitored
Copyright © 2013. All Rights Reserved.