Class Participant
java.lang.Object
org.apache.curator.framework.recipes.leader.Participant
Describes a participant in a leadership selection
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Participant
- Parameters:
id
- the IDleader
- true if the leader
-
-
Method Details
-
getId
Returns the ID set viaLeaderSelector.setId(String)
- Returns:
- id
-
isLeader
public boolean isLeader()Returns true if this participant is the current leader- Returns:
- true/false
-
toString
-
equals
-
hashCode
public int hashCode()
-