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).
    • Method Detail

      • processWatch

        void processWatch​(String path,
                          WatchCallback.WatchEventType eventType)
        When watch is triggered, process it
        Parameters:
        path - the node path
        eventType - the WatchEventType