public interface QuorumService
Modifier and Type | Method and Description |
---|---|
void |
ensureQuorumPresent(String quorumName,
QuorumType requiredQuorumPermissionType)
Ensures that the quorum with the given name is present.
|
Quorum |
getQuorum(String quorumName)
Returns the
Quorum instance for a given quorum name. |
Quorum getQuorum(String quorumName) throws IllegalArgumentException
Quorum
instance for a given quorum name.quorumName
- name of the quorumQuorum
IllegalArgumentException
- if no quorum found for given nameNullPointerException
- if quorumName is nullvoid ensureQuorumPresent(String quorumName, QuorumType requiredQuorumPermissionType) throws QuorumException
quorumName
- quorum name to ensure, can be null or emptyrequiredQuorumPermissionType
- type of quorum requiredQuorumException
- if quorum defined and not presentCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.