Interface ContinuousWatcherDirectory
public interface ContinuousWatcherDirectory
Service for setting up ContinuousWatchers and ContinuousListeners.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetWatchersForListener(ContinuousListener listener) Look up a specificContinuousListener'sContinuousWatchers.voidregisterListener(ContinuousListener listener) Register a ContinuousListener to its associated watchers.
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
registerListener
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'sContinuousWatchers.- Parameters:
listener- TheContinuousListenerwhose watcher to pick up.- Returns:
- The
ContinuousWatcherfor the provided listener. - Throws:
IllegalStateException- if no associated watcher is found, as that should not be possible.CoreTokenException
-