Uses of Package
java.util.concurrent.locks
Package
Description
Interfaces and classes providing a framework for locking and waiting
for conditions that is distinct from built-in synchronization and
monitors.
-
ClassDescriptionA synchronizer that may be exclusively owned by a thread.Condition implementation for a
AbstractQueuedLongSynchronizer
serving as the basis of aLock
implementation.Condition implementation for aAbstractQueuedSynchronizer
serving as the basis of aLock
implementation.Lock
implementations provide more extensive locking operations than can be obtained usingsynchronized
methods and statements.AReadWriteLock
maintains a pair of associatedlocks
, one for read-only operations and one for writing.An implementation ofReadWriteLock
supporting similar semantics toReentrantLock
.The lock returned by methodReentrantReadWriteLock.readLock()
.The lock returned by methodReentrantReadWriteLock.writeLock()
.