public class Leadership
extends java.lang.Object
| Constructor and Description |
|---|
Leadership(java.lang.String topic,
Leader leader,
java.util.List<NodeId> candidates) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<NodeId> |
candidates()
Returns an preference-ordered list of nodes that are in the leadership
race for this topic.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
Leader |
leader()
Returns the leader for this topic.
|
NodeId |
leaderNodeId()
Returns the
nodeId of the leader. |
java.lang.String |
topic()
Returns the leadership topic.
|
java.lang.String |
toString() |
public java.lang.String topic()
public NodeId leaderNodeId()
nodeId of the leader.public Leader leader()
public java.util.List<NodeId> candidates()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object