Class AsyncEventException

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class AsyncEventException
    extends java.lang.Exception
    The exception type set for async watchers
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract org.apache.zookeeper.Watcher.Event.KeeperState getKeeperState()
      Returns the error condition that temporarily triggered the watcher.
      abstract java.util.concurrent.CompletionStage<org.apache.zookeeper.WatchedEvent> reset()
      ZooKeeper temporarily triggers watchers when there is a connection event.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AsyncEventException

        public AsyncEventException()
    • Method Detail

      • 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 java.util.concurrent.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