Class TraceableReentrantLock

  • All Implemented Interfaces:
    java.io.Serializable, java.util.concurrent.locks.Lock

    public class TraceableReentrantLock
    extends java.util.concurrent.locks.ReentrantLock
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TraceableReentrantLock​(org.apache.log4j.Logger log)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void lock()  
      void lock​(java.lang.String callingMethod)  
      boolean tryLock()  
      boolean tryLock​(java.lang.String callingMethod)  
      void unlock()  
      void unlock​(java.lang.String callingMethod)  
      • Methods inherited from class java.util.concurrent.locks.ReentrantLock

        getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lockInterruptibly, newCondition, toString, tryLock
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TraceableReentrantLock

        public TraceableReentrantLock​(org.apache.log4j.Logger log)
    • Method Detail

      • tryLock

        public boolean tryLock​(java.lang.String callingMethod)
      • lock

        public void lock​(java.lang.String callingMethod)
      • unlock

        public void unlock​(java.lang.String callingMethod)
      • tryLock

        public boolean tryLock()
        Specified by:
        tryLock in interface java.util.concurrent.locks.Lock
        Overrides:
        tryLock in class java.util.concurrent.locks.ReentrantLock
      • lock

        public void lock()
        Specified by:
        lock in interface java.util.concurrent.locks.Lock
        Overrides:
        lock in class java.util.concurrent.locks.ReentrantLock
      • unlock

        public void unlock()
        Specified by:
        unlock in interface java.util.concurrent.locks.Lock
        Overrides:
        unlock in class java.util.concurrent.locks.ReentrantLock