Package org.apache.heron.spi.statemgr
Interface WatchCallback
-
public interface WatchCallback
A callback interface used to set a watch on any of the nodes in certain implemenations of IStateManager (Zookeeper for example) Any event on that node will trigger the callback (processWatch).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WatchCallback.WatchEventType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processWatch(String path, WatchCallback.WatchEventType eventType)
When watch is triggered, process it
-
-
-
Method Detail
-
processWatch
void processWatch(String path, WatchCallback.WatchEventType eventType)
When watch is triggered, process it- Parameters:
path
- the node patheventType
- the WatchEventType
-
-