public enum TransactionState extends Enum<TransactionState>
Enum Constant and Description |
---|
ACTIVE
Transaction started.
|
COMMITTED
Transaction commit succeeded.
|
COMMITTING
Transaction commit started (validating finished).
|
MARKED_ROLLBACK
Transaction is marked for rollback.
|
PREPARED
Transaction validation succeeded.
|
PREPARING
Transaction validating.
|
ROLLED_BACK
Transaction rollback succeeded.
|
ROLLING_BACK
Transaction rollback started (validation failed).
|
SUSPENDED
Transaction has been suspended by user.
|
UNKNOWN
Transaction rollback failed or is otherwise unknown state.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable TransactionState |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static TransactionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionState ACTIVE
public static final TransactionState PREPARING
public static final TransactionState PREPARED
public static final TransactionState MARKED_ROLLBACK
public static final TransactionState COMMITTING
public static final TransactionState COMMITTED
public static final TransactionState ROLLING_BACK
public static final TransactionState ROLLED_BACK
public static final TransactionState UNKNOWN
public static final TransactionState SUSPENDED
public static TransactionState[] values()
for (TransactionState c : TransactionState.values()) System.out.println(c);
public static TransactionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public static @Nullable TransactionState fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019