- All Superinterfaces:
- All Known Subinterfaces:
public interface MembershipListener extends EventListener
Cluster membership listener. The MembershipListener will never be called concurrently and all MembershipListeners will receive the events in the same order.
memberAddedvoid memberAdded(MembershipEvent membershipEvent)Invoked when a new member is added to the cluster.
membershipEvent- membership event
memberRemovedvoid memberRemoved(MembershipEvent membershipEvent)Invoked when an existing member leaves the cluster.
membershipEvent- membership event when an existing member leaves the cluster