public enum GridCacheTxState extends Enum<GridCacheTxState>
| 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).
|
UNKNOWN
Transaction rollback failed or is otherwise unknown state.
|
| Modifier and Type | Method and Description |
|---|---|
static GridCacheTxState |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static GridCacheTxState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheTxState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheTxState ACTIVE
public static final GridCacheTxState PREPARING
public static final GridCacheTxState PREPARED
public static final GridCacheTxState MARKED_ROLLBACK
public static final GridCacheTxState COMMITTING
public static final GridCacheTxState COMMITTED
public static final GridCacheTxState ROLLING_BACK
public static final GridCacheTxState ROLLED_BACK
public static final GridCacheTxState UNKNOWN
public static GridCacheTxState[] values()
for (GridCacheTxState c : GridCacheTxState.values()) System.out.println(c);
public static GridCacheTxState 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 GridCacheTxState fromOrdinal(int ord)
ord - Ordinal value.null if ordinal out of range.Copyright © 2014. All rights reserved.