Interface MembershipListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
InitialMembershipListener
All Known Implementing Classes:
MembershipAdapter

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.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

      void memberAdded(MembershipEvent membershipEvent)
      Invoked when a new member is added to the cluster.
      Parameters:
      membershipEvent - membership event
    • memberRemoved

      void memberRemoved(MembershipEvent membershipEvent)
      Invoked when an existing member leaves the cluster.
      Parameters:
      membershipEvent - membership event when an existing member leaves the cluster