Package org.apache.curator.framework.recipes.leader

Interface Summary
LeaderLatchListener A LeaderLatchListener can be used to be notified asynchronously about when the state of the LeaderLatch has changed.
LeaderSelectorListener Notification for leadership
 

Class Summary
LeaderLatch Abstraction to select a "leader" amongst multiple contenders in a group of JMVs connected to a Zookeeper cluster.
LeaderSelector Abstraction to select a "leader" amongst multiple contenders in a group of JMVs connected to a Zookeeper cluster.
LeaderSelectorListenerAdapter An implementation of LeaderSelectorListener that adds the recommended handling for connection state problems
Participant Describes a participant in a leadership selection
 

Enum Summary
LeaderLatch.CloseMode How to handle listeners when the latch is closed
LeaderLatch.State  
 

Exception Summary
CancelLeadershipException When thrown from ConnectionStateListener.stateChanged(CuratorFramework, ConnectionState), will cause LeaderSelector.interruptLeadership() to get called.
 



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