public class DisabledStopwatchSource<L> extends Object implements StopwatchSource<L>
| Constructor and Description |
|---|
DisabledStopwatchSource() |
| Modifier and Type | Method and Description |
|---|---|
static <L> DisabledStopwatchSource<L> |
get()
Returns a singleton instance.
|
Manager |
getManager()
Returns the
Manager used as a real source of monitors. |
Stopwatch |
getMonitor(L location)
Returns the monitor for given location.
|
boolean |
isMonitored(L location)
Indicates whether given location should be monitored or not.
|
Split |
start(L location)
Convenient method to return split for the location or disabled split, if the location is not monitored.
|
public DisabledStopwatchSource()
public static <L> DisabledStopwatchSource<L> get()
public Split start(L location)
StopwatchSourcestart in interface StopwatchSource<L>location - location to be monitoredSplit for the location or {Split#DISABLED} if the location is not monitoredpublic boolean isMonitored(L location)
MonitorSourceisMonitored in interface MonitorSource<L,Stopwatch>location - Locationpublic Stopwatch getMonitor(L location)
MonitorSourcegetMonitor in interface MonitorSource<L,Stopwatch>location - Locationpublic Manager getManager()
MonitorSourceManager used as a real source of monitors.getManager in interface MonitorSource<L,Stopwatch>Copyright © 2019. All rights reserved.