@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public enum LockType extends Enum<LockType>
Enum Constant and Description |
---|
NONE
The lock type that indicates that no lock should be obtained for
the associated object.
|
READ
The lock type that indicates that a read lock should be obtained
for the associated object.
|
WRITE
The lock type that indicates that a write lock should be obtained
for the associated object.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Retrieves the name of this lock type element.
|
String |
toString()
Retrieves a string representation of this lock type element.
|
static LockType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockType READ
public static final LockType WRITE
public static LockType[] values()
for (LockType c : LockType.values()) System.out.println(c);
public static LockType 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 String getName()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.