Package org.apache.curator.framework.recipes.leader
-
Interface Summary Interface Description 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 Class Description 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 ofLeaderSelectorListener
that adds the recommended handling for connection state problemsParticipant Describes a participant in a leadership selection -
Enum Summary Enum Description LeaderLatch.CloseMode How to handle listeners when the latch is closedLeaderLatch.State -
Exception Summary Exception Description CancelLeadershipException When thrown fromConnectionStateListener.stateChanged(CuratorFramework, ConnectionState)
, will causeLeaderSelector.interruptLeadership()
to get called.