public static enum ExclusiveResource.LockMode extends java.lang.Enum<ExclusiveResource.LockMode>
LockMode
translates to the respective ReadWriteLock
locks.Enum Constant and Description |
---|
READ
Require only read access to the resource.
|
READ_WRITE
Require read and write access to the resource.
|
Modifier and Type | Method and Description |
---|---|
static ExclusiveResource.LockMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExclusiveResource.LockMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExclusiveResource.LockMode READ_WRITE
ReadWriteLock.writeLock()
public static final ExclusiveResource.LockMode READ
ReadWriteLock.readLock()
public static ExclusiveResource.LockMode[] values()
for (ExclusiveResource.LockMode c : ExclusiveResource.LockMode.values()) System.out.println(c);
public static ExclusiveResource.LockMode 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 namejava.lang.NullPointerException
- if the argument is null