public interface IZkStateListener
| Modifier and Type | Method and Description |
|---|---|
void |
handleNewSession()
Called after the zookeeper session has expired and a new session has been created.
|
void |
handleSessionEstablishmentError(java.lang.Throwable error)
Called when a session cannot be re-established.
|
void |
handleStateChanged(org.apache.zookeeper.Watcher.Event.KeeperState state)
Called when the zookeeper connection state has changed.
|
void handleStateChanged(org.apache.zookeeper.Watcher.Event.KeeperState state)
throws java.lang.Exception
state - The new state.java.lang.Exception - On any error.void handleNewSession()
throws java.lang.Exception
java.lang.Exception - On any error.void handleSessionEstablishmentError(java.lang.Throwable error)
throws java.lang.Exception
error - The error that prevents a session from being establishedjava.lang.Exception - On any error.