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.
Peter Veentjer.
See Also:
Cluster.addMembershipListener(MembershipListener), MembershipEvent.getMembers()
  • Method Details

    • init

      void init​(InitialMembershipEvent event)
      Called when this listener is registered.
      event - the MembershipInitializeEvent received when the listener is registered