public static enum MembershipEvent.Type extends java.lang.Enum<MembershipEvent.Type>
enumeration
of different type of MembershipEvents
.Enum Constant and Description |
---|
MEMBER_DEPARTED |
MEMBER_JOINED |
MEMBER_SUSPECT |
QUORUM_LOST |
UNQUALIFIED |
Modifier and Type | Method and Description |
---|---|
static MembershipEvent.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MembershipEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MembershipEvent.Type MEMBER_DEPARTED
public static final MembershipEvent.Type MEMBER_JOINED
public static final MembershipEvent.Type MEMBER_SUSPECT
public static final MembershipEvent.Type QUORUM_LOST
public static final MembershipEvent.Type UNQUALIFIED
public static MembershipEvent.Type[] values()
for (MembershipEvent.Type c : MembershipEvent.Type.values()) System.out.println(c);
public static MembershipEvent.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null