public enum MembershipEventType extends Enum<MembershipEventType>
| Enum Constant and Description |
|---|
COORDINATOR_CHANGED |
MEMBER_ADDED |
MEMBER_REMOVED |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Retrieve the integer code of the event type.
|
static MembershipEventType |
getTypeFromInt(int typeInInt)
Retrieve the relevant type of the membership event by passing the integer code.
|
static MembershipEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MembershipEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MembershipEventType MEMBER_ADDED
public static final MembershipEventType MEMBER_REMOVED
public static final MembershipEventType COORDINATOR_CHANGED
public static MembershipEventType[] values()
for (MembershipEventType c : MembershipEventType.values()) System.out.println(c);
public static MembershipEventType 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 nullpublic int getCode()
public static MembershipEventType getTypeFromInt(int typeInInt) throws CoordinationException
typeInInt - the integer codeCoordinationException - if the membership event type is invalidCopyright © 2017 WSO2. All rights reserved.