Interface ConnectionStateListener
- All Known Implementing Classes:
CircuitBreakingConnectionStateListener
public interface ConnectionStateListener
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanConnectionStateListener managers set viaCuratorFrameworkFactory.Builder.connectionStateListenerManagerFactory(ConnectionStateListenerManagerFactory)are allowed to proxy (etc.) ConnectionStateListeners as needed.voidstateChanged(CuratorFramework client, ConnectionState newState) Called when there is a state change in the connection
-
Method Details
-
stateChanged
Called when there is a state change in the connection- Parameters:
client- the clientnewState- the new state
-
doNotProxy
default boolean doNotProxy()ConnectionStateListener managers set viaCuratorFrameworkFactory.Builder.connectionStateListenerManagerFactory(ConnectionStateListenerManagerFactory)are allowed to proxy (etc.) ConnectionStateListeners as needed. If this method returnstruethe ConnectionStateListener manager must not proxy the listener as it's a vital internal listener used by Curator.- Returns:
- true/false
-