public final class QuorumCalculator extends Object
Constructor and Description |
---|
QuorumCalculator(int expectedGroupSize) |
Modifier and Type | Method and Description |
---|---|
int |
getQuorum()
Returns the quorum for this group.
|
boolean |
isQuorum(int actualSize)
Checks whether the actual size of the group is atleast quorum.
|
public boolean isQuorum(int actualSize)
actualSize
- size of the active clusterpublic int getQuorum()
Copyright © 2016. All Rights Reserved.