public enum PrepareResult extends Enum<PrepareResult>
| Enum Constant and Description |
|---|
CONCURRENT_TRANSACTION
Signifies a failure to another transaction locking the underlying state.
|
OK
Signifies a successful execution of the prepare operation.
|
OPTIMISTIC_LOCK_FAILURE
Signifies a optimistic lock failure.
|
PARTIAL_FAILURE
Signifies some participants in a distributed prepare operation failed.
|
| Modifier and Type | Method and Description |
|---|---|
static PrepareResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrepareResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrepareResult OK
public static final PrepareResult PARTIAL_FAILURE
public static final PrepareResult CONCURRENT_TRANSACTION
public static final PrepareResult OPTIMISTIC_LOCK_FAILURE
public static PrepareResult[] values()
for (PrepareResult c : PrepareResult.values()) System.out.println(c);
public static PrepareResult 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