Interface ConnectionStateListener
-
- All Known Implementing Classes:
CircuitBreakingConnectionStateListener
public interface ConnectionStateListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleandoNotProxy()ConnectionStateListener 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 Detail
-
stateChanged
void stateChanged(CuratorFramework client, ConnectionState newState)
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
-
-