Package org.apache.curator.x.async
Class AsyncEventException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.curator.x.async.AsyncEventException
- All Implemented Interfaces:
Serializable
The exception type set for async watchers
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.zookeeper.Watcher.Event.KeeperState
Returns the error condition that temporarily triggered the watcher.abstract 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
-
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. Usereset()
to stage on the successful trigger- Returns:
- state
-
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
-