public static enum LeadershipEvent.Type extends Enum<LeadershipEvent.Type>
Enum Constant and Description |
---|
CANDIDATES_CHANGED
Signifies a change in the list of candidates for a topic.
|
LEADER_AND_CANDIDATES_CHANGED
Signifies a change in both the leader as well as change to the list of candidates.
|
LEADER_CHANGED
Signifies that the leader for a topic has changed.
|
SERVICE_DISRUPTED
Signifies the Leadership Elector is unavailable.
|
SERVICE_RESTORED
Signifies the Leadership Elector is available again.
|
Modifier and Type | Method and Description |
---|---|
static LeadershipEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeadershipEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeadershipEvent.Type LEADER_AND_CANDIDATES_CHANGED
public static final LeadershipEvent.Type LEADER_CHANGED
public static final LeadershipEvent.Type CANDIDATES_CHANGED
public static final LeadershipEvent.Type SERVICE_DISRUPTED
public static final LeadershipEvent.Type SERVICE_RESTORED
public static LeadershipEvent.Type[] values()
for (LeadershipEvent.Type c : LeadershipEvent.Type.values()) System.out.println(c);
public static LeadershipEvent.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null