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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
stateChanged
(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, wait
Methods inherited from interface org.apache.curator.framework.state.ConnectionStateListener
doNotProxy
Methods inherited from interface org.apache.curator.framework.recipes.leader.LeaderSelectorListener
takeLeadership
-
Constructor Details
-
LeaderSelectorListenerAdapter
public LeaderSelectorListenerAdapter()
-
-
Method Details
-
stateChanged
Description copied from interface:ConnectionStateListener
Called when there is a state change in the connection- Specified by:
stateChanged
in interfaceConnectionStateListener
- Parameters:
client
- the clientnewState
- the new state
-