public interface ConnectionStateListener
Modifier and Type | Method and Description |
---|---|
default boolean |
doNotProxy()
ConnectionStateListener managers set via
CuratorFrameworkFactory.Builder.connectionStateListenerManagerFactory(ConnectionStateListenerManagerFactory)
are allowed to proxy (etc.) ConnectionStateListeners as needed. |
void |
stateChanged(CuratorFramework client,
ConnectionState newState)
Called when there is a state change in the connection
|
void stateChanged(CuratorFramework client, ConnectionState newState)
client
- the clientnewState
- the new statedefault boolean doNotProxy()
CuratorFrameworkFactory.Builder.connectionStateListenerManagerFactory(ConnectionStateListenerManagerFactory)
are allowed to proxy (etc.) ConnectionStateListeners as needed. If this method returns true
the ConnectionStateListener manager must not proxy the listener as it's a vital internal
listener used by Curator.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.