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:
java.io.Serializable
public abstract class AsyncEventException extends java.lang.ExceptionThe exception type set for async watchers- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncEventException()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract org.apache.zookeeper.Watcher.Event.KeeperStategetKeeperState()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.
-
-
-
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. Usereset()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
-
-