org.apache.clerezza.rdf.core.access.debug
Class ReentrantReadWriteLockTracker

java.lang.Object
  extended by java.util.concurrent.locks.ReentrantReadWriteLock
      extended by org.apache.clerezza.rdf.core.access.debug.ReentrantReadWriteLockTracker
All Implemented Interfaces:
Serializable, ReadWriteLock

public class ReentrantReadWriteLockTracker
extends ReentrantReadWriteLock

Author:
mir
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.concurrent.locks.ReentrantReadWriteLock
ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock
 
Constructor Summary
ReentrantReadWriteLockTracker()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.util.concurrent.locks.ReentrantReadWriteLock
getQueueLength, hasQueuedThread, hasQueuedThreads, isFair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReentrantReadWriteLockTracker

public ReentrantReadWriteLockTracker()
Method Detail

getOwner

protected Thread getOwner()
Overrides:
getOwner in class ReentrantReadWriteLock

getQueuedReaderThreads

protected Collection<Thread> getQueuedReaderThreads()
Overrides:
getQueuedReaderThreads in class ReentrantReadWriteLock

getQueuedThreads

protected Collection<Thread> getQueuedThreads()
Overrides:
getQueuedThreads in class ReentrantReadWriteLock

getQueuedWriterThreads

protected Collection<Thread> getQueuedWriterThreads()
Overrides:
getQueuedWriterThreads in class ReentrantReadWriteLock

getReadHoldCount

public int getReadHoldCount()
Overrides:
getReadHoldCount in class ReentrantReadWriteLock

getReadLockCount

public int getReadLockCount()
Overrides:
getReadLockCount in class ReentrantReadWriteLock

getWaitQueueLength

public int getWaitQueueLength(Condition condition)
Overrides:
getWaitQueueLength in class ReentrantReadWriteLock

getWaitingThreads

protected Collection<Thread> getWaitingThreads(Condition condition)
Overrides:
getWaitingThreads in class ReentrantReadWriteLock

getWriteHoldCount

public int getWriteHoldCount()
Overrides:
getWriteHoldCount in class ReentrantReadWriteLock

hasWaiters

public boolean hasWaiters(Condition condition)
Overrides:
hasWaiters in class ReentrantReadWriteLock

isWriteLocked

public boolean isWriteLocked()
Overrides:
isWriteLocked in class ReentrantReadWriteLock

isWriteLockedByCurrentThread

public boolean isWriteLockedByCurrentThread()
Overrides:
isWriteLockedByCurrentThread in class ReentrantReadWriteLock

readLock

public ReentrantReadWriteLock.ReadLock readLock()
Specified by:
readLock in interface ReadWriteLock
Overrides:
readLock in class ReentrantReadWriteLock

toString

public String toString()
Overrides:
toString in class ReentrantReadWriteLock

writeLock

public WriteLockDebug writeLock()
Specified by:
writeLock in interface ReadWriteLock
Overrides:
writeLock in class ReentrantReadWriteLock

getLockedReadLocks

public Set<ReadLockDebug> getLockedReadLocks()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.