Package org.apache.juneau.internal
Class SimpleReadWriteLock
java.lang.Object
java.util.concurrent.locks.ReentrantReadWriteLock
org.apache.juneau.internal.SimpleReadWriteLock
- All Implemented Interfaces:
- Serializable,- ReadWriteLock
An extension of 
ReentrantReadWriteLock with convenience methods for creating
 auto-closeable locks.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.concurrent.locks.ReentrantReadWriteLockReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.util.concurrent.locks.ReentrantReadWriteLockgetOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, readLock, toString, writeLock
- 
Field Details- 
NO_OPA no-op lock.
 
- 
- 
Constructor Details- 
SimpleReadWriteLockpublic SimpleReadWriteLock()Constructor.
- 
SimpleReadWriteLockConstructor- Parameters:
- fair-- true if this lock should use a fair ordering policy.
 
 
- 
- 
Method Details- 
writeConstruct a write lock.- Returns:
- A new closeable write lock.
 
- 
readConstruct a read lock.- Returns:
- A new closeable read lock.
 
 
-