L
- Location/invocation contextM
- Simon typeK
- Location keypublic abstract class CachedMonitorSource<L,M extends Simon,K> extends Object implements MonitorSource<L,M>
Constructor and Description |
---|
CachedMonitorSource(MonitorSource<L,M> delegate)
Constructor with real
MonitorSource . |
Modifier and Type | Method and Description |
---|---|
protected abstract K |
getLocationKey(L location)
Get location for given location.
|
Manager |
getManager()
Returns the
Manager used as a real source of monitors. |
M |
getMonitor(L location)
Get Simon for the specified location.
|
boolean |
isMonitored(L location)
Check whether location should be monitored.
|
public CachedMonitorSource(MonitorSource<L,M> delegate)
MonitorSource
.delegate
- Delegate provider monitors for realprotected abstract K getLocationKey(L location)
public boolean isMonitored(L location)
isMonitored
in interface MonitorSource<L,M extends Simon>
location
- Locationpublic M getMonitor(L location)
getMonitor
in interface MonitorSource<L,M extends Simon>
location
- Locationpublic Manager getManager()
MonitorSource
Manager
used as a real source of monitors.getManager
in interface MonitorSource<L,M extends Simon>
Copyright © 2019. All rights reserved.