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(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 Exception
state
- The new state.Exception
- On any error.void handleNewSession() throws Exception
Exception
- On any error.void handleSessionEstablishmentError(Throwable error) throws Exception
error
- The error that prevents a session from being establishedException
- On any error.Copyright © 2019. All rights reserved.