Package com.hazelcast.cluster
Interface MembershipListener
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
InitialMembershipListener
- All Known Implementing Classes:
MembershipAdapter
Cluster membership listener.
The MembershipListener will never be called concurrently and all MembershipListeners will receive the events in the same order.
-
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.
-
Method Details
-
memberAdded
Invoked when a new member is added to the cluster.- Parameters:
membershipEvent
- membership event
-
memberRemoved
Invoked when an existing member leaves the cluster.- Parameters:
membershipEvent
- membership event when an existing member leaves the cluster
-