Class LeaderSelectorListenerAdapter
java.lang.Object
org.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter
- All Implemented Interfaces:
LeaderSelectorListener,org.apache.curator.framework.state.ConnectionStateListener
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(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.state.ConnectionState newState) Methods 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
public void stateChanged(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.state.ConnectionState newState) - Specified by:
stateChangedin interfaceorg.apache.curator.framework.state.ConnectionStateListener
-