org.I0Itec.zkclient
Interface IZkStateListener
public interface IZkStateListener
|
Method Summary |
void |
handleNewSession()
Called after the zookeeper session has expired and a new session has been created. |
void |
handleStateChanged(org.apache.zookeeper.Watcher.Event.KeeperState state)
Called when the zookeeper connection state has changed. |
handleStateChanged
void handleStateChanged(org.apache.zookeeper.Watcher.Event.KeeperState state)
throws Exception
- Called when the zookeeper connection state has changed.
- Parameters:
state - The new state.
- Throws:
Exception - On any error.
handleNewSession
void handleNewSession()
throws Exception
- Called after the zookeeper session has expired and a new session has been created. You would have to re-create
any ephemeral nodes here.
- Throws:
Exception - On any error.
Copyright © 2011. All Rights Reserved.