Class CycleDetectingLockFactory.CycleDetectingReentrantReadLock

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

    private class CycleDetectingLockFactory.CycleDetectingReentrantReadLock
    extends java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
    • Method Detail

      • lock

        public void lock()
        Specified by:
        lock in interface java.util.concurrent.locks.Lock
        Overrides:
        lock in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
      • lockInterruptibly

        public void lockInterruptibly()
                               throws java.lang.InterruptedException
        Specified by:
        lockInterruptibly in interface java.util.concurrent.locks.Lock
        Overrides:
        lockInterruptibly in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
        Throws:
        java.lang.InterruptedException
      • tryLock

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

        public boolean tryLock​(long timeout,
                               java.util.concurrent.TimeUnit unit)
                        throws java.lang.InterruptedException
        Specified by:
        tryLock in interface java.util.concurrent.locks.Lock
        Overrides:
        tryLock in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
        Throws:
        java.lang.InterruptedException
      • unlock

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