@Stability.Internal public enum AttemptState extends Enum<AttemptState>
| Enum Constant and Description |
|---|
ABORTED
Set once the Active Transaction Record entry for this transaction has been updated to mark the transaction as
Aborted.
|
COMMITTED
Set once the Active Transaction Record entry for this transaction has been updated to mark the transaction as
Committed.
|
COMPLETED
Set once the commit is fully completed.
|
NOT_STARTED
The attempt did not create an ATR entry.
|
PENDING
Any call to one of the mutation methods -
insert, replace, remove - will update the
state to PENDING. |
ROLLED_BACK
Set once the commit is fully rolled back.
|
UNKNOWN
A state this client doesn't recognise.
|
| Modifier and Type | Method and Description |
|---|---|
static AttemptState |
convert(String input) |
static AttemptState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttemptState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttemptState NOT_STARTED
public static final AttemptState PENDING
insert, replace, remove - will update the
state to PENDING.public static final AttemptState ABORTED
public static final AttemptState COMMITTED
public static final AttemptState COMPLETED
public static final AttemptState ROLLED_BACK
public static final AttemptState UNKNOWN
public static AttemptState[] values()
for (AttemptState c : AttemptState.values()) System.out.println(c);
public static AttemptState 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 nullpublic static AttemptState convert(String input)
Copyright © 2024 Couchbase, Inc.. All rights reserved.