public static enum ConsistentSession.State extends java.lang.Enum<ConsistentSession.State>
Enum Constant and Description |
---|
FAILED |
FINALIZE_PROMISED |
FINALIZED |
PREPARED |
PREPARING |
REPAIRING |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransitionTo(ConsistentSession.State state) |
static ConsistentSession.State |
valueOf(int ordinal) |
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.
|
public static final ConsistentSession.State PREPARING
public static final ConsistentSession.State PREPARED
public static final ConsistentSession.State REPAIRING
public static final ConsistentSession.State FINALIZE_PROMISED
public static final ConsistentSession.State FINALIZED
public static final ConsistentSession.State FAILED
public static ConsistentSession.State[] values()
for (ConsistentSession.State c : ConsistentSession.State.values()) System.out.println(c);
public static ConsistentSession.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean canTransitionTo(ConsistentSession.State state)
public static ConsistentSession.State valueOf(int ordinal)
Copyright © 2009- The Apache Software Foundation