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
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.