public interface InitialMembershipListener extends MembershipListener
MembershipListener
that first receives an
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 InitialMembershipEvent. This is a once only event.
Cluster.addMembershipListener(MembershipListener)
,
MembershipEvent.getMembers()
Modifier and Type | Method and Description |
---|---|
void |
init(InitialMembershipEvent event)
Called when this listener is registered.
|
memberAdded, memberRemoved
void init(InitialMembershipEvent event)
event
- the MembershipInitializeEvent received when the listener is registeredCopyright © 2023 Hazelcast, Inc.. All rights reserved.