public enum CommitResult extends Enum<CommitResult>
| Enum Constant and Description |
|---|
FAILURE_DURING_COMMIT
Failure during commit phase.
|
FAILURE_TO_PREPARE
Signifies a failure to get participants to agree to commit (during prepare stage).
|
OK
Signifies a successful commit execution.
|
UNKNOWN_TRANSACTION_ID
Signifies a failure due to unrecognized transaction identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static CommitResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommitResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommitResult OK
public static final CommitResult UNKNOWN_TRANSACTION_ID
public static final CommitResult FAILURE_TO_PREPARE
public static final CommitResult FAILURE_DURING_COMMIT
public static CommitResult[] values()
for (CommitResult c : CommitResult.values()) System.out.println(c);
public static CommitResult 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 nullCopyright © 2016. All rights reserved.