public enum GroupEvent extends Enum<GroupEvent>
| Enum Constant and Description |
|---|
BECOME_LEADER
Become leader of the group
|
BECOME_MEMBER
Become member of group
|
BECOME_STANDBY
Become a standby member of group
|
MEMBER_JOIN
A new Member joined the group
|
MEMBER_LEAVE
A Member left the group
|
NEW_LEADER
New leader elected
|
| Modifier and Type | Method and Description |
|---|---|
static GroupEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GroupEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GroupEvent BECOME_STANDBY
public static final GroupEvent BECOME_MEMBER
public static final GroupEvent BECOME_LEADER
public static final GroupEvent MEMBER_JOIN
public static final GroupEvent MEMBER_LEAVE
public static final GroupEvent NEW_LEADER
public static GroupEvent[] values()
for (GroupEvent c : GroupEvent.values()) System.out.println(c);
public static GroupEvent 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 © 2014. All Rights Reserved.