Enum Class ConsistencyLevel
- All Implemented Interfaces:
Serializable,Comparable<ConsistencyLevel>,java.lang.constant.Constable
Specifies consistency level for a modifying (replicated) operation
- Since:
- 9.5.1
- Author:
- eitany
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnsure that the modification has been updated in all members before responding to the client, otherwise the modification is rejected and aConsistencyLevelViolationExceptionis thrown.Ensure that the modification has been updated in at least 1 member before responding to the client, otherwise the modification is rejected and aConsistencyLevelViolationExceptionis thrown.Ensure that the modification has been updated in at least N / 2 + 1 members before responding to the client, otherwise the modification is rejected and aConsistencyLevelViolationExceptionis thrown. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsistencyLevelfromCode(byte readByte) bytegetCode()static ConsistencyLevelReturns the enum constant of this class with the specified name.static ConsistencyLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
Ensure that the modification has been updated in at least 1 member before responding to the client, otherwise the modification is rejected and aConsistencyLevelViolationExceptionis thrown. In a primary backup topology that member is the primary. -
QUORUM
Ensure that the modification has been updated in at least N / 2 + 1 members before responding to the client, otherwise the modification is rejected and aConsistencyLevelViolationExceptionis thrown. In a primary backup topology one of the members is the primary. -
ALL
Ensure that the modification has been updated in all members before responding to the client, otherwise the modification is rejected and aConsistencyLevelViolationExceptionis thrown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public byte getCode() -
fromCode
-