public static enum LeadershipEvent.Type extends Enum<LeadershipEvent.Type>
| Enum Constant and Description |
|---|
LEADER_BOOTED
Signifies that the leader has been booted and lost leadership.
|
LEADER_ELECTED
Signifies that the leader has been elected.
|
LEADER_REELECTED
Signifies that the leader has been re-elected.
|
| 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_ELECTED
public static final LeadershipEvent.Type LEADER_REELECTED
public static final LeadershipEvent.Type LEADER_BOOTED
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 nullCopyright © 2015. All rights reserved.