- unlock
Attempts to release this lock.If the current thread is the holder of this lock
then the hold count i
- <init>
Creates an instance of ReentrantLock with the given fairness policy.
- tryLock
Acquires the lock if it is not held by another thread within the given waiting
time and the current
- isHeldByCurrentThread
Queries if this lock is held by the current thread.Analogous to the
Thread#holdsLock method for buil
- lockInterruptibly
Acquires the lock unless the current thread is Thread#interrupt.Acquires the
lock if it is not held
- newCondition
Returns a Condition instance for use with this Lock instance.The returned
Condition instance support
- isLocked
Queries if this lock is held by any thread. This method is designed for use in
monitoring of the sys
- getHoldCount
Queries the number of holds on this lock by the current thread.A thread has a
hold on a lock for eac
- hasQueuedThreads
Queries whether any threads are waiting to acquire this lock. Note that because
cancellations may oc
- getQueueLength
Returns an estimate of the number of threads waiting to acquire this lock. The
value is only an esti
- hasQueuedThread
Queries whether the given thread is waiting to acquire this lock. Note that
because cancellations ma
- hasWaiters
Queries whether any threads are waiting on the given condition associated with
this lock. Note that