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, toString
private 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.ReadWriteLock
readLock
in class java.util.concurrent.locks.ReentrantReadWriteLock
public java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock()
writeLock
in interface java.util.concurrent.locks.ReadWriteLock
writeLock
in class java.util.concurrent.locks.ReentrantReadWriteLock
public CycleDetectingLockFactory.LockGraphNode getLockGraphNode()
getLockGraphNode
in interface CycleDetectingLockFactory.CycleDetectingLock
CycleDetectingLockFactory.LockGraphNode
associated with this lock.public boolean isAcquiredByCurrentThread()
isAcquiredByCurrentThread
in interface CycleDetectingLockFactory.CycleDetectingLock
true
if the current thread has acquired this lock.