public static enum ReadWriteLock.Options extends java.lang.Enum<ReadWriteLock.Options>
Enum Constant and Description |
---|
DEADLOCKS
Detect and report deadlocks.
|
DIALOGS
Detect and report dialogs posted with lock held.
|
FAIR
Use fair locking.
|
HISTORY
Collect lock history for use when reporting.
|
JDK
Use JDK
ReentrantReadWriteLock implementation. |
LEGACY
Use legacy wait-notify based implementation.
|
NESTED_HISTORY
Collect nested lock history for use when reporting.
|
UPGRADES
Detect and report lock upgrades.
|
Modifier and Type | Method and Description |
---|---|
static ReadWriteLock.Options |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadWriteLock.Options[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadWriteLock.Options JDK
ReentrantReadWriteLock
implementation.public static final ReadWriteLock.Options LEGACY
public static final ReadWriteLock.Options DEADLOCKS
public static final ReadWriteLock.Options UPGRADES
public static final ReadWriteLock.Options DIALOGS
public static final ReadWriteLock.Options FAIR
public static final ReadWriteLock.Options HISTORY
public static final ReadWriteLock.Options NESTED_HISTORY
public static ReadWriteLock.Options[] values()
for (ReadWriteLock.Options c : ReadWriteLock.Options.values()) System.out.println(c);
public static ReadWriteLock.Options 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