public class Leadership<T> extends Object
| Constructor and Description |
|---|
Leadership(Leader<T> leader,
List<T> candidates) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
candidates()
Returns an preference-ordered list of nodes that are in the leadership
race for this topic.
|
boolean |
equals(Object obj) |
int |
hashCode() |
Leader<T> |
leader()
Returns the leader for this topic.
|
<U> Leadership<U> |
map(Function<T,U> mapper)
Maps the leadership identifiers using the given mapper.
|
String |
toString() |
public Leader<T> leader()
public List<T> candidates()
public <U> Leadership<U> map(Function<T,U> mapper)
U - the converted identifier typemapper - the mapper with which to convert identifiersCopyright © 2013–2018. All rights reserved.