public class ReentrantReadWriteLockTracker extends java.util.concurrent.locks.ReentrantReadWriteLock
java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock, java.util.concurrent.locks.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(java.util.concurrent.locks.Condition condition) |
int |
getWaitQueueLength(java.util.concurrent.locks.Condition condition) |
int |
getWriteHoldCount() |
boolean |
hasWaiters(java.util.concurrent.locks.Condition condition) |
boolean |
isWriteLocked() |
boolean |
isWriteLockedByCurrentThread() |
java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock |
readLock() |
String |
toString() |
WriteLockDebug |
writeLock() |
getQueueLength, hasQueuedThread, hasQueuedThreads, isFair
protected Thread getOwner()
getOwner
in class java.util.concurrent.locks.ReentrantReadWriteLock
protected Collection<Thread> getQueuedReaderThreads()
getQueuedReaderThreads
in class java.util.concurrent.locks.ReentrantReadWriteLock
protected Collection<Thread> getQueuedThreads()
getQueuedThreads
in class java.util.concurrent.locks.ReentrantReadWriteLock
protected Collection<Thread> getQueuedWriterThreads()
getQueuedWriterThreads
in class java.util.concurrent.locks.ReentrantReadWriteLock
public int getReadHoldCount()
getReadHoldCount
in class java.util.concurrent.locks.ReentrantReadWriteLock
public int getReadLockCount()
getReadLockCount
in class java.util.concurrent.locks.ReentrantReadWriteLock
public int getWaitQueueLength(java.util.concurrent.locks.Condition condition)
getWaitQueueLength
in class java.util.concurrent.locks.ReentrantReadWriteLock
protected Collection<Thread> getWaitingThreads(java.util.concurrent.locks.Condition condition)
getWaitingThreads
in class java.util.concurrent.locks.ReentrantReadWriteLock
public int getWriteHoldCount()
getWriteHoldCount
in class java.util.concurrent.locks.ReentrantReadWriteLock
public boolean hasWaiters(java.util.concurrent.locks.Condition condition)
hasWaiters
in class java.util.concurrent.locks.ReentrantReadWriteLock
public boolean isWriteLocked()
isWriteLocked
in class java.util.concurrent.locks.ReentrantReadWriteLock
public boolean isWriteLockedByCurrentThread()
isWriteLockedByCurrentThread
in class java.util.concurrent.locks.ReentrantReadWriteLock
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 String toString()
toString
in class java.util.concurrent.locks.ReentrantReadWriteLock
public WriteLockDebug writeLock()
writeLock
in interface java.util.concurrent.locks.ReadWriteLock
writeLock
in class java.util.concurrent.locks.ReentrantReadWriteLock
public Set<ReadLockDebug> getLockedReadLocks()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.