public interface ZooKeeperConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
onConnect(org.apache.curator.framework.CuratorFramework client)
Called when the Curator
ConnectionStateListener receives a
ConnectionState.CONNECTED event. |
void |
onDisconnect(org.apache.curator.framework.CuratorFramework client)
Called when the Curator
ConnectionStateListener receives a
ConnectionState.LOST event. |
void |
onResume(org.apache.curator.framework.CuratorFramework client)
Called when the Curator
ConnectionStateListener receives a
ConnectionState.RECONNECTED event. |
void |
onSuspend(org.apache.curator.framework.CuratorFramework client)
Called when the Curator
ConnectionStateListener receives a
ConnectionState.SUSPENDED event. |
void onConnect(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener
receives a
ConnectionState.CONNECTED
event.client
- the CuratorFramework
instancevoid onResume(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener
receives a
ConnectionState.RECONNECTED
event.client
- the CuratorFramework
instancevoid onDisconnect(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener
receives a
ConnectionState.LOST
event.client
- the CuratorFramework
instancevoid onSuspend(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener
receives a
ConnectionState.SUSPENDED
event.client
- the CuratorFramework
instance