public enum LockStrategyMode extends Enum<LockStrategyMode>
| Enum Constant and Description |
|---|
OPTIMISTIC
Optimistic lock mode is recommended when resources are not reused in the current global transaction.
|
PESSIMISTIC
Pessimistic lock mode is recommended when there may be repeated use of the same resource in a global transaction.
|
| Modifier and Type | Method and Description |
|---|---|
static LockStrategyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockStrategyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockStrategyMode OPTIMISTIC
public static final LockStrategyMode PESSIMISTIC
public static LockStrategyMode[] values()
for (LockStrategyMode c : LockStrategyMode.values()) System.out.println(c);
public static LockStrategyMode 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 © 2023 Seata. All rights reserved.