Class ZooKeeperConnection.ExistsWatcher

  • All Implemented Interfaces:
    org.apache.zookeeper.Watcher
    Enclosing class:
    ZooKeeperConnection

    protected static class ZooKeeperConnection.ExistsWatcher
    extends java.lang.Object
    implements org.apache.zookeeper.Watcher
    Watcher class for exists state changes, so we get notified about deletions of lock request nodes.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher

        org.apache.zookeeper.Watcher.Event, org.apache.zookeeper.Watcher.WatcherType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean eventTriggered  
    • Constructor Summary

      Constructors 
      Constructor Description
      ExistsWatcher()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(org.apache.zookeeper.WatchedEvent event)  
      void waitForEvent()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • eventTriggered

        protected boolean eventTriggered
    • Constructor Detail

      • ExistsWatcher

        public ExistsWatcher()
    • Method Detail

      • process

        public void process​(org.apache.zookeeper.WatchedEvent event)
        Specified by:
        process in interface org.apache.zookeeper.Watcher
      • waitForEvent

        public void waitForEvent()
                          throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException