org.javasimon.source
Class CachedStopwatchSource<L,K>

java.lang.Object
  extended by org.javasimon.source.CachedMonitorSource<L,Stopwatch,K>
      extended by 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

Constructor Summary
CachedStopwatchSource(StopwatchSource<L> delegate)
           
 
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 org.javasimon.source.CachedMonitorSource
getLocationKey, getManager, getMonitor, isMonitored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.javasimon.source.MonitorSource
getManager, getMonitor, isMonitored
 

Constructor Detail

CachedStopwatchSource

public CachedStopwatchSource(StopwatchSource<L> delegate)
Method Detail

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.