Class AsyncEventException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.curator.x.async.AsyncEventException
All Implemented Interfaces:
Serializable

public abstract class AsyncEventException extends Exception
The exception type set for async watchers
See Also:
  • Constructor Details

    • AsyncEventException

      public AsyncEventException()
  • Method Details

    • getKeeperState

      public abstract org.apache.zookeeper.Watcher.Event.KeeperState getKeeperState()
      Returns the error condition that temporarily triggered the watcher. NOTE: the watcher will most likely still be set. Use reset() to stage on the successful trigger
      Returns:
      state
    • reset

      public abstract CompletionStage<org.apache.zookeeper.WatchedEvent> reset()
      ZooKeeper temporarily triggers watchers when there is a connection event. However, the watcher stays set for the original operation. Use this method to reset with a new completion stage that will allow waiting for a successful trigger.
      Returns:
      new stage