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

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

public class WriteLockDebug
extends ReentrantReadWriteLock.WriteLock

Author:
mir
See Also:
Serialized Form

Constructor Summary
WriteLockDebug(ReentrantReadWriteLockTracker lock)
           
 
Method Summary
 int getHoldCount()
           
 StackTraceElement[] getStackTrace()
           
 boolean isHeldByCurrentThread()
           
 void lock()
           
 void lockInterruptibly()
           
 Condition newCondition()
           
 boolean tryLock()
           
 boolean tryLock(long timeout, TimeUnit unit)
           
 void unlock()
           
 
Methods inherited from class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteLockDebug

public WriteLockDebug(ReentrantReadWriteLockTracker lock)
Method Detail

getHoldCount

public int getHoldCount()
Overrides:
getHoldCount in class ReentrantReadWriteLock.WriteLock

isHeldByCurrentThread

public boolean isHeldByCurrentThread()
Overrides:
isHeldByCurrentThread in class ReentrantReadWriteLock.WriteLock

lock

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

lockInterruptibly

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

newCondition

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

tryLock

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

tryLock

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

unlock

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

getStackTrace

public StackTraceElement[] getStackTrace()


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