Interface Watcher<T>
-
- All Known Implementing Classes:
LongPollReadEntryProcessorV3
public interface Watcher<T>
A class can implement theWatcher
interface when it wants to be informed of one-time changes in watchable objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
update(T value)
This method is called whenever the watched object is changed.
-
-
-
Method Detail
-
update
void update(T value)
This method is called whenever the watched object is changed. An application calls an Watchable object'snotifyWatchers
method to have all the object's watchers notified of the change.- Parameters:
value
- the updated value of a watchable
-
-