public enum TxnStatus extends Enum<TxnStatus>
| Enum Constant and Description |
|---|
ABORTED |
ABORTING |
COMMITTED |
COMMITTING |
OPEN |
| Modifier and Type | Field and Description |
|---|---|
static int |
ABORTED_VALUE |
static int |
ABORTING_VALUE |
static int |
COMMITTED_VALUE |
static int |
COMMITTING_VALUE |
static int |
OPEN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static TxnStatus |
valueOf(int n) |
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 final int OPEN_VALUE
public static final int COMMITTING_VALUE
public static final int COMMITTED_VALUE
public static final int ABORTING_VALUE
public static final int ABORTED_VALUE
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 int getValue()
public static TxnStatus valueOf(int n)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.