public static enum LockResult.FailureReason extends Enum<LockResult.FailureReason>
| Enum Constant and Description |
|---|
ALREADY_LOCKED |
PRECONDITION_FAILED |
| Modifier and Type | Field and Description |
|---|---|
Response.Status |
status |
| Modifier and Type | Method and Description |
|---|---|
static LockResult.FailureReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockResult.FailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockResult.FailureReason ALREADY_LOCKED
public static final LockResult.FailureReason PRECONDITION_FAILED
public Response.Status status
public static LockResult.FailureReason[] values()
for (LockResult.FailureReason c : LockResult.FailureReason.values()) System.out.println(c);
public static LockResult.FailureReason 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 null