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