Package com.hazelcast.cluster
Class MembershipAdapter
java.lang.Object
com.hazelcast.cluster.MembershipAdapter
- All Implemented Interfaces:
MembershipListener
,EventListener
Adapter for MembershipListener. All the methods are implemented and only override the relevant methods
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
memberAdded
(MembershipEvent membershipEvent) Invoked when a new member is added to the cluster.void
memberRemoved
(MembershipEvent membershipEvent) Invoked when an existing member leaves the cluster.
-
Constructor Details
-
MembershipAdapter
public MembershipAdapter()
-
-
Method Details
-
memberAdded
Description copied from interface:MembershipListener
Invoked when a new member is added to the cluster.- Specified by:
memberAdded
in interfaceMembershipListener
- Parameters:
membershipEvent
- membership event
-
memberRemoved
Description copied from interface:MembershipListener
Invoked when an existing member leaves the cluster.- Specified by:
memberRemoved
in interfaceMembershipListener
- Parameters:
membershipEvent
- membership event when an existing member leaves the cluster
-