org.apache.clerezza.rdf.core.access.debug
Class WriteLockDebug
java.lang.Object
java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
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
WriteLockDebug
public WriteLockDebug(ReentrantReadWriteLockTracker lock)
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.