Package com.hazelcast.cp.event
Interface CPMembershipEvent
public interface CPMembershipEvent
CPMembershipEvent is published when a CP member is added to
or removed from the CP Subsystem.
- Since:
- 4.1
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Membership event type. -
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
Member ADDED event ID.static final byte
Member REMOVED event ID. -
Method Summary
Modifier and TypeMethodDescriptionReturns the CPMember that is added to or removed from CP Subsystem.getType()
Returns the type of membership change.
-
Field Details
-
MEMBER_ADDED
static final byte MEMBER_ADDEDMember ADDED event ID.- See Also:
-
MEMBER_REMOVED
static final byte MEMBER_REMOVEDMember REMOVED event ID.- See Also:
-
-
Method Details
-
getMember
CPMember getMember()Returns the CPMember that is added to or removed from CP Subsystem.- Returns:
- the CP member
-
getType
CPMembershipEvent.EventType getType()Returns the type of membership change.- Returns:
- membership event type
-