public enum LockStatus extends Enum<LockStatus>
| Enum Constant and Description |
|---|
Locked
The Locked.
|
Rollbacking
The Rollbacking.
|
| Modifier and Type | Method and Description |
|---|---|
static LockStatus |
get(byte code)
Get lock status.
|
static LockStatus |
get(int code)
Get lock status.
|
int |
getCode()
Gets code.
|
static LockStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockStatus Locked
public static final LockStatus Rollbacking
public static LockStatus[] values()
for (LockStatus c : LockStatus.values()) System.out.println(c);
public static LockStatus 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 LockStatus get(byte code)
code - the codepublic static LockStatus get(int code)
code - the codepublic int getCode()
Copyright © 2023 Seata. All rights reserved.