public enum LockResult extends Enum<LockResult>
| Enum Constant and Description |
|---|
HOLD_BY_ANOTHER_CLIENT
Lock is currently hold by another client
|
NOT_FOUND
Lock is not currently hold by any client (not locked before, or already
expired)
|
SUCCESSFUL
Lock operation was successful
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
static LockResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockResult SUCCESSFUL
public static final LockResult HOLD_BY_ANOTHER_CLIENT
public static final LockResult NOT_FOUND
public static LockResult[] values()
for (LockResult c : LockResult.values()) System.out.println(c);
public static LockResult 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 © 2018 DDTH. All rights reserved.