final class CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock extends java.util.concurrent.locks.ReentrantReadWriteLock implements CycleDetectingLockFactory.CycleDetectingLock
| Modifier and Type | Field and Description |
|---|---|
private CycleDetectingLockFactory.LockGraphNode |
lockGraphNode |
private CycleDetectingLockFactory.CycleDetectingReentrantReadLock |
readLock |
private CycleDetectingLockFactory.CycleDetectingReentrantWriteLock |
writeLock |
| Modifier | Constructor and Description |
|---|---|
private |
CycleDetectingReentrantReadWriteLock(CycleDetectingLockFactory.LockGraphNode lockGraphNode,
boolean fair) |
| Modifier and Type | Method and Description |
|---|---|
CycleDetectingLockFactory.LockGraphNode |
getLockGraphNode() |
boolean |
isAcquiredByCurrentThread() |
java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock |
readLock() |
java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
writeLock() |
getOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, toStringprivate final CycleDetectingLockFactory.CycleDetectingReentrantReadLock readLock
private final CycleDetectingLockFactory.CycleDetectingReentrantWriteLock writeLock
private final CycleDetectingLockFactory.LockGraphNode lockGraphNode
private CycleDetectingReentrantReadWriteLock(CycleDetectingLockFactory.LockGraphNode lockGraphNode, boolean fair)
public java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock readLock()
readLock in interface java.util.concurrent.locks.ReadWriteLockreadLock in class java.util.concurrent.locks.ReentrantReadWriteLockpublic java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock()
writeLock in interface java.util.concurrent.locks.ReadWriteLockwriteLock in class java.util.concurrent.locks.ReentrantReadWriteLockpublic CycleDetectingLockFactory.LockGraphNode getLockGraphNode()
getLockGraphNode in interface CycleDetectingLockFactory.CycleDetectingLockCycleDetectingLockFactory.LockGraphNode associated with this lock.public boolean isAcquiredByCurrentThread()
isAcquiredByCurrentThread in interface CycleDetectingLockFactory.CycleDetectingLocktrue if the current thread has acquired this lock.