- writeLock
- readLock
- <init>
Creates a new ReentrantReadWriteLock with the given fairness policy.
- isWriteLockedByCurrentThread
Queries if the write lock is held by the current thread.
- getReadHoldCount
Queries the number of reentrant read holds on this lock by the current thread. A
reader thread has a
- getWriteHoldCount
Queries the number of reentrant write holds on this lock by the current thread.
A writer thread has
- isWriteLocked
Queries if the write lock is held by any thread. This method is designed for use
in monitoring syste
- getReadLockCount
Queries the number of read locks held for this lock. This method is designed for
use in monitoring s
- getQueueLength
Returns an estimate of the number of threads waiting to acquire either the read
or write lock. The v
- toString
Returns a string identifying this lock, as well as its lock state. The state, in
brackets, includes
- hasQueuedThreads
Queries whether any threads are waiting to acquire the read or write lock. Note
that because cancell
- getWaitQueueLength
Returns an estimate of the number of threads waiting on the given condition
associated with the writ