Interface ContinuousWatcherDirectory
-
public interface ContinuousWatcherDirectory
Service for setting up ContinuousWatchers and ContinuousListeners.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<ContinuousWatcher>
getWatchersForListener(ContinuousListener listener)
Look up a specificContinuousListener
'sContinuousWatcher
s.void
registerListener(ContinuousListener listener)
Register a ContinuousListener to its associated watchers.
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerListener
void registerListener(ContinuousListener listener) throws CoreTokenException
Register a ContinuousListener to its associated watchers. Must be called in order for the listener to receive notifications.- Parameters:
listener
- The ContinuousListener to register.- Throws:
CoreTokenException
-
getWatchersForListener
Set<ContinuousWatcher> getWatchersForListener(ContinuousListener listener) throws CoreTokenException
Look up a specificContinuousListener
'sContinuousWatcher
s.- Parameters:
listener
- TheContinuousListener
whose watcher to pick up.- Returns:
- The
ContinuousWatcher
for the provided listener. - Throws:
IllegalStateException
- if no associated watcher is found, as that should not be possible.CoreTokenException
-
-