Serializable
, Comparable<ExclusiveResource.LockMode>
public static enum ExclusiveResource.LockMode extends Enum<ExclusiveResource.LockMode>
LockMode
translates to the respective ReadWriteLock
locks.Enum Constant | Description |
---|---|
READ |
Require only read access to the resource.
|
READ_WRITE |
Require read and write access to the resource.
|
Modifier and Type | Method | Description |
---|---|---|
static ExclusiveResource.LockMode |
valueOf(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(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 nullCopyright © 2019. All rights reserved.