com.hazelcast.core

## Interface InitialMembershipListener

- All Superinterfaces:
    EventListener, MembershipListener
  All Known Implementing Classes:
    AbstractLoadBalancer, RandomLB, RoundRobinLB

      public interface InitialMembershipListener
      extends MembershipListener

  The InitializingMembershipListener is a `MembershipListener` that first receives a `InitialMembershipEvent` when it is registered so it immediately knows which members are available. After that event has been received, it will receive the normal MembershipEvents. When the InitializingMembershipListener already is registered on a `Cluster` and is registered again on the same Cluster instance, it will not receive an additional MembershipInitializeEvent. This is a once only event.
  Author:
    Peter Veentjer.
  See Also:
    `Cluster.addMembershipListener(MembershipListener)`, `MembershipEvent.getMembers()`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `init(InitialMembershipEvent event)` Called when this listener is registered.

    - ### Methods inherited from interface com.hazelcast.core.MembershipListener

      `memberAdded, memberAttributeChanged, memberRemoved`

- - ### Method Detail

    - #### init

          void init(InitialMembershipEvent event)

      Called when this listener is registered.
      Parameters:
        `event` - the MembershipInitializeEvent received when the listener is registered

Copyright © 2019. All rights reserved.