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 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. |
public void onConnect(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener receives a
ConnectionState.CONNECTED event.onConnect in interface ZooKeeperConnectionListenerclient - the CuratorFramework instancepublic void onResume(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener receives a
ConnectionState.RECONNECTED event.onResume in interface ZooKeeperConnectionListenerclient - the CuratorFramework instancepublic void onDisconnect(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener receives a
ConnectionState.LOST event.onDisconnect in interface ZooKeeperConnectionListenerclient - the CuratorFramework instancepublic void onSuspend(org.apache.curator.framework.CuratorFramework client)
ConnectionStateListener receives a
ConnectionState.SUSPENDED event.onSuspend in interface ZooKeeperConnectionListenerclient - the CuratorFramework instance