public class RepositoryConnectionListener extends java.lang.Object implements ZooKeeperConnectionListener
Constructor and Description |
---|
RepositoryConnectionListener() |
Modifier and Type | Method and Description |
---|---|
void |
onConnect(org.apache.curator.framework.CuratorFramework client)
Called when the Curator
ConnectionStateListener receives a
ConnectionState.CONNECTED or
ConnectionState.RECONNECTED event. |
void |
onDisconnect(org.apache.curator.framework.CuratorFramework client)
Called when the Curator
ConnectionStateListener receives a
ConnectionState.SUSPENDED or
ConnectionState.LOST event. |
public void onConnect(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener
receives a
ConnectionState.CONNECTED
or
ConnectionState.RECONNECTED
event.onConnect
in interface ZooKeeperConnectionListener
client
- the CuratorFramework
instancepublic void onDisconnect(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener
receives a
ConnectionState.SUSPENDED
or
ConnectionState.LOST
event.onDisconnect
in interface ZooKeeperConnectionListener
client
- the CuratorFramework
instance