public interface QuorumFunction
QuorumFunction
also
implements HeartbeatAware
QuorumFunction
that implements HeartbeatAware
will be also notified of heartbeats.
Additionally, a QuorumFunction
that implements MembershipListener
will be notified of membership events. All listener invocations are executed before the
QuorumFunction
's apply(Collection)
method is invoked.
IMPORTANT: The term "quorum" simply refers to the count of members in the cluster required for an operation to succeed.
It does NOT refer to an implementation of Paxos or Raft protocols as used in many NoSQL and distributed systems.
The mechanism it provides in Hazelcast protects the user in case the number of nodes in a cluster drops below the
specified one.Modifier and Type | Method and Description |
---|---|
boolean |
apply(Collection<Member> members)
Determines if quorum is present based on the current list of members in the cluster.
|
boolean apply(Collection<Member> members)
members
- snapshot of current member listCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.