Class LeaderSelectorListenerAdapter
java.lang.Object
org.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter
- All Implemented Interfaces:
LeaderSelectorListener,ConnectionStateListener
- Direct Known Subclasses:
ExampleClient
public abstract class LeaderSelectorListenerAdapter
extends Object
implements LeaderSelectorListener
An implementation of
LeaderSelectorListener that adds the recommended handling
for connection state problems-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstateChanged(CuratorFramework client, ConnectionState newState) Called when there is a state change in the connectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.curator.framework.state.ConnectionStateListener
doNotProxyMethods inherited from interface org.apache.curator.framework.recipes.leader.LeaderSelectorListener
takeLeadership
-
Constructor Details
-
LeaderSelectorListenerAdapter
public LeaderSelectorListenerAdapter()
-
-
Method Details
-
stateChanged
Description copied from interface:ConnectionStateListenerCalled when there is a state change in the connection- Specified by:
stateChangedin interfaceConnectionStateListener- Parameters:
client- the clientnewState- the new state
-