public interface ConnectionStateListener
|Modifier and Type||Method and Description|
Normally, ConnectionStateListeners are decorated via the configured
Called when there is a state change in the connection
void stateChanged(CuratorFramework client, ConnectionState newState)
client- the client
newState- the new state
default boolean doNotDecorate()
ConnectionStateListenerDecorator. For certain critical cases, however, this is not desired. If your listener returns
truefor doNotDecorate(), it will not be passed through the decorator.
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.