com.hazelcast.core

## Interface MembershipListener

- All Superinterfaces:
    EventListener
  All Known Subinterfaces:
    InitialMembershipListener
  All Known Implementing Classes:
    AbstractLoadBalancer, MembershipAdapter, RandomLB, RoundRobinLB

      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:
    `InitialMembershipListener`, `Cluster.addMembershipListener(MembershipListener)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `memberAdded(MembershipEvent membershipEvent)` Invoked when a new member is added to the cluster.
    `void` | `memberAttributeChanged(MemberAttributeEvent memberAttributeEvent)` Invoked when an attribute of a member was changed.
    `void` | `memberRemoved(MembershipEvent membershipEvent)` Invoked when an existing member leaves the cluster.

- - ### Method Detail

    - #### 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

    - #### memberAttributeChanged

          void memberAttributeChanged(MemberAttributeEvent memberAttributeEvent)

      Invoked when an attribute of a member was changed.
      Parameters:
        `memberAttributeEvent` - member attribute event when an attribute of a member was changed
      Since:
        3.2

Copyright © 2019. All rights reserved.