@Beta public enum TxnStatus extends Enum<TxnStatus>
| Enum Constant and Description |
|---|
ABORTED |
ABORTING |
COMMITTED |
COMMITTING |
OPEN |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransitionTo(TxnStatus newStatus)
Check if the a status can be transaction to a new status.
|
static TxnStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxnStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxnStatus OPEN
public static final TxnStatus COMMITTING
public static final TxnStatus COMMITTED
public static final TxnStatus ABORTING
public static final TxnStatus ABORTED
public static TxnStatus[] values()
for (TxnStatus c : TxnStatus.values()) System.out.println(c);
public static TxnStatus 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 boolean canTransitionTo(TxnStatus newStatus)
newStatus - the new statusCopyright © 2017–2020 Apache Software Foundation. All rights reserved.