org.apache.curator.framework.recipes.leader
Class LeaderSelectorListenerAdapter

java.lang.Object
  extended by 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
LeaderSelectorListenerAdapter()
           
 
Method Summary
 void stateChanged(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, wait
 
Methods inherited from interface org.apache.curator.framework.recipes.leader.LeaderSelectorListener
takeLeadership
 

Constructor Detail

LeaderSelectorListenerAdapter

public LeaderSelectorListenerAdapter()
Method Detail

stateChanged

public void stateChanged(org.apache.curator.framework.CuratorFramework client,
                         org.apache.curator.framework.state.ConnectionState newState)
Specified by:
stateChanged in interface org.apache.curator.framework.state.ConnectionStateListener


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.