public enum LockIntentType extends Enum<LockIntentType>
Enum Constant and Description |
---|
LEAVELOCK_OPTIMISTIC |
READ |
UPDATE |
WRITE_EXCLUSIVE |
Modifier and Type | Method and Description |
---|---|
LockIntent |
getIntent() |
static LockIntentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockIntentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockIntentType READ
public static final LockIntentType WRITE_EXCLUSIVE
public static final LockIntentType UPDATE
public static final LockIntentType LEAVELOCK_OPTIMISTIC
public static LockIntentType[] values()
for (LockIntentType c : LockIntentType.values()) System.out.println(c);
public static LockIntentType 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 LockIntent getIntent()
Copyright © 2015. All rights reserved.