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

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

public class ReadLockDebug
extends ReentrantReadWriteLock.ReadLock

Author:
mir
See Also:
Serialized Form

Constructor Summary
ReadLockDebug(ReentrantReadWriteLockTracker lock)
           
 
Method Summary
 StackTraceElement[] getStackTrace()
           
 void lock()
           
 void lockInterruptibly()
           
 Condition newCondition()
           
 String toString()
           
 boolean tryLock()
           
 boolean tryLock(long timeout, TimeUnit unit)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadLockDebug

public ReadLockDebug(ReentrantReadWriteLockTracker lock)
Method Detail

lock

public void lock()
Specified by:
lock in interface Lock
Overrides:
lock in class ReentrantReadWriteLock.ReadLock

lockInterruptibly

public void lockInterruptibly()
                       throws InterruptedException
Specified by:
lockInterruptibly in interface Lock
Overrides:
lockInterruptibly in class ReentrantReadWriteLock.ReadLock
Throws:
InterruptedException

newCondition

public Condition newCondition()
Specified by:
newCondition in interface Lock
Overrides:
newCondition in class ReentrantReadWriteLock.ReadLock

toString

public String toString()
Overrides:
toString in class ReentrantReadWriteLock.ReadLock

tryLock

public boolean tryLock()
Specified by:
tryLock in interface Lock
Overrides:
tryLock in class ReentrantReadWriteLock.ReadLock

tryLock

public boolean tryLock(long timeout,
                       TimeUnit unit)
                throws InterruptedException
Specified by:
tryLock in interface Lock
Overrides:
tryLock in class ReentrantReadWriteLock.ReadLock
Throws:
InterruptedException

unlock

public void unlock()
Specified by:
unlock in interface Lock
Overrides:
unlock in class ReentrantReadWriteLock.ReadLock

getStackTrace

public StackTraceElement[] getStackTrace()


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