Example usage for Java java.util.concurrent.locks ReentrantReadWriteLock fields, constructors, methods, implement or subclass
The text is from its open source code.
ReentrantReadWriteLock() Creates a new ReentrantReadWriteLock with default (nonfair) ordering properties. | |
ReentrantReadWriteLock(boolean fair) Creates a new ReentrantReadWriteLock with the given fairness policy. |
int | getQueueLength() Returns an estimate of the number of threads waiting to acquire either the read or write lock. |
int | getReadLockCount() Queries the number of read locks held for this lock. |
int | hashCode() Returns a hash code value for the object. |
boolean | isWriteLocked() Queries if the write lock is held by any thread. |
ReentrantReadWriteLock.ReadLock | readLock() |
String | toString() Returns a string identifying this lock, as well as its lock state. |
ReentrantReadWriteLock.WriteLock | writeLock() |