public enum UnlockMode extends Enum<UnlockMode>
Enum Constant and Description |
---|
ALWAYS
force unlock and re-acquire
|
LOCKING_PROCESS_DEAD
force unlock and re-acquire only if the locking process is dead, otherwise throw exception
|
NEVER
throw exception
|
Modifier and Type | Method and Description |
---|---|
static UnlockMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnlockMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnlockMode ALWAYS
public static final UnlockMode NEVER
public static final UnlockMode LOCKING_PROCESS_DEAD
public static UnlockMode[] values()
for (UnlockMode c : UnlockMode.values()) System.out.println(c);
public static UnlockMode 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. All rights reserved.