public interface CPGroupAvailabilityListener extends EventListener
In general, availability decreases when a CP member becomes unreachable
because of process crash, network partition, out of memory etc.
Once a member is declared as unavailable by the Hazelcast's failure detector,
that member is removed from the cluster. If it is also a CP member,
CPGroupAvailabilityEvent
s are fired for each
CP group that member belongs to.
As a special case, CPGroupAvailabilityListener has a separate method to report loss of majority. When majority of a CP group is lost, that CP group cannot make progress anymore. Even a new CP member cannot join to this CP group, because membership changes also go through the Raft consensus algorithm. When a CP group has lost its majority:
Modifier and Type | Method and Description |
---|---|
void |
availabilityDecreased(CPGroupAvailabilityEvent event)
Called when a CP group's availability decreases,
but still has the majority of members available.
|
void |
majorityLost(CPGroupAvailabilityEvent event)
Called when a CP group has lost its majority.
|
void availabilityDecreased(CPGroupAvailabilityEvent event)
event
- CP group availability eventvoid majorityLost(CPGroupAvailabilityEvent event)
event
- CP group availability eventCopyright © 2020 Hazelcast, Inc.. All rights reserved.