|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<LockType>
org.opends.server.types.LockType
@PublicAPI(stability=UNCOMMITTED,
mayInstantiate=false,
mayExtend=false,
mayInvoke=true)
public enum LockTypeThis enumeration defines a set of lock types that can be used when requesting that a lock be obtained for an entry or some other object.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Retrieves the name of this lock type element. |
java.lang.String |
toString()
Retrieves a string representation of this lock type element. |
static LockType |
valueOf(java.lang.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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LockType READ
public static final LockType WRITE
public static final LockType NONE
| Method Detail |
|---|
public static LockType[] values()
for (LockType c : LockType.values()) System.out.println(c);
public static LockType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Enum<LockType>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||