Enum ConsistentSession.State
- java.lang.Object
-
- java.lang.Enum<ConsistentSession.State>
-
- org.apache.cassandra.repair.consistent.ConsistentSession.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConsistentSession.State>
- Enclosing class:
- ConsistentSession
public static enum ConsistentSession.State extends java.lang.Enum<ConsistentSession.State>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTransitionTo(ConsistentSession.State state)
static ConsistentSession.State
valueOf(int ordinal)
Returns the enum constant of this type with the specified name.static ConsistentSession.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConsistentSession.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREPARING
public static final ConsistentSession.State PREPARING
-
PREPARED
public static final ConsistentSession.State PREPARED
-
REPAIRING
public static final ConsistentSession.State REPAIRING
-
FINALIZE_PROMISED
public static final ConsistentSession.State FINALIZE_PROMISED
-
FINALIZED
public static final ConsistentSession.State FINALIZED
-
FAILED
public static final ConsistentSession.State FAILED
-
-
Method Detail
-
values
public static ConsistentSession.State[] 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 (ConsistentSession.State c : ConsistentSession.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsistentSession.State 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
-
canTransitionTo
public boolean canTransitionTo(ConsistentSession.State state)
-
valueOf
public static ConsistentSession.State valueOf(int ordinal)
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:
ordinal
- 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
-
-