Class LeaderInitiator.CuratorContext
java.lang.Object
org.springframework.integration.zookeeper.leader.LeaderInitiator.CuratorContext
- All Implemented Interfaces:
Context
- Enclosing class:
LeaderInitiator
-
Method Summary
Modifier and TypeMethodDescription@Nullable org.apache.curator.framework.recipes.leader.Participant
Get the leaderCollection
<org.apache.curator.framework.recipes.leader.Participant> Get the list of participantsgetRole()
Get the role for theCandidate
.boolean
isLeader()
Checks if theCandidate
this context was passed to is the leader.toString()
void
yield()
Causes theCandidate
this context was passed to to relinquish leadership.
-
Method Details
-
isLeader
-
yield
-
getRole
-
getLeader
public @Nullable org.apache.curator.framework.recipes.leader.Participant getLeader()Get the leader- Returns:
- the leader.
- Since:
- 6.0.3
-
getParticipants
Get the list of participants- Returns:
- list of participants.
- Since:
- 6.0.3
-
toString
-