Package org.apache.cassandra.config
Enum Config.PaxosOnLinearizabilityViolation
- java.lang.Object
-
- java.lang.Enum<Config.PaxosOnLinearizabilityViolation>
-
- org.apache.cassandra.config.Config.PaxosOnLinearizabilityViolation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Config.PaxosOnLinearizabilityViolation>
- Enclosing class:
- Config
public static enum Config.PaxosOnLinearizabilityViolation extends java.lang.Enum<Config.PaxosOnLinearizabilityViolation>
A safety mechanism for detecting incorrect paxos state, that may be down either to a bug or incorrect usage of LWTs (most likely due to unsafe mixing of SERIAL and LOCAL_SERIAL operations), and rejecting
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Config.PaxosOnLinearizabilityViolation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Config.PaxosOnLinearizabilityViolation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
fail
public static final Config.PaxosOnLinearizabilityViolation fail
-
log
public static final Config.PaxosOnLinearizabilityViolation log
-
ignore
public static final Config.PaxosOnLinearizabilityViolation ignore
-
-
Method Detail
-
values
public static Config.PaxosOnLinearizabilityViolation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Config.PaxosOnLinearizabilityViolation c : Config.PaxosOnLinearizabilityViolation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Config.PaxosOnLinearizabilityViolation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-