Uses of Interface
Packages that use Lock Package Description java.util.concurrent.locksInterfaces and classes providing a framework for locking and waiting for conditions that is distinct from built-in synchronization and monitors.
Uses of Lock in java.util.concurrent.locks
Classes in java.util.concurrent.locks that implement Lock Modifier and Type Class Description
ReentrantLockA reentrant mutual exclusion
Lockwith the same basic behavior and semantics as the implicit monitor lock accessed using
synchronizedmethods and statements, but with extended capabilities.
ReentrantReadWriteLock.ReadLockThe lock returned by method
ReentrantReadWriteLock.WriteLockThe lock returned by method
Methods in java.util.concurrent.locks that return Lock Modifier and Type Method Description
readLock()Returns the lock used for reading.
writeLock()Returns the lock used for writing.