public class ReentrantReadWriteLockTracker extends ReentrantReadWriteLock
ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock| Constructor and Description |
|---|
ReentrantReadWriteLockTracker() |
| Modifier and Type | Method and Description |
|---|---|
Set<ReadLockDebug> |
getLockedReadLocks() |
protected Thread |
getOwner() |
protected Collection<Thread> |
getQueuedReaderThreads() |
protected Collection<Thread> |
getQueuedThreads() |
protected Collection<Thread> |
getQueuedWriterThreads() |
int |
getReadHoldCount() |
int |
getReadLockCount() |
protected Collection<Thread> |
getWaitingThreads(Condition condition) |
int |
getWaitQueueLength(Condition condition) |
int |
getWriteHoldCount() |
boolean |
hasWaiters(Condition condition) |
boolean |
isWriteLocked() |
boolean |
isWriteLockedByCurrentThread() |
ReentrantReadWriteLock.ReadLock |
readLock() |
String |
toString() |
WriteLockDebug |
writeLock() |
getQueueLength, hasQueuedThread, hasQueuedThreads, isFairprotected Thread getOwner()
getOwner in class ReentrantReadWriteLockprotected Collection<Thread> getQueuedReaderThreads()
getQueuedReaderThreads in class ReentrantReadWriteLockprotected Collection<Thread> getQueuedThreads()
getQueuedThreads in class ReentrantReadWriteLockprotected Collection<Thread> getQueuedWriterThreads()
getQueuedWriterThreads in class ReentrantReadWriteLockpublic int getReadHoldCount()
getReadHoldCount in class ReentrantReadWriteLockpublic int getReadLockCount()
getReadLockCount in class ReentrantReadWriteLockpublic int getWaitQueueLength(Condition condition)
getWaitQueueLength in class ReentrantReadWriteLockprotected Collection<Thread> getWaitingThreads(Condition condition)
getWaitingThreads in class ReentrantReadWriteLockpublic int getWriteHoldCount()
getWriteHoldCount in class ReentrantReadWriteLockpublic boolean hasWaiters(Condition condition)
hasWaiters in class ReentrantReadWriteLockpublic boolean isWriteLocked()
isWriteLocked in class ReentrantReadWriteLockpublic boolean isWriteLockedByCurrentThread()
isWriteLockedByCurrentThread in class ReentrantReadWriteLockpublic ReentrantReadWriteLock.ReadLock readLock()
readLock in interface ReadWriteLockreadLock in class ReentrantReadWriteLockpublic String toString()
toString in class ReentrantReadWriteLockpublic WriteLockDebug writeLock()
writeLock in interface ReadWriteLockwriteLock in class ReentrantReadWriteLockpublic Set<ReadLockDebug> getLockedReadLocks()
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.