private class CycleDetectingLockFactory.CycleDetectingReentrantReadLock
extends java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
Modifier and Type | Field and Description |
---|---|
(package private) CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock |
readWriteLock |
Constructor and Description |
---|
CycleDetectingReentrantReadLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock) |
Modifier and Type | Method and Description |
---|---|
void |
lock() |
void |
lockInterruptibly() |
boolean |
tryLock() |
boolean |
tryLock(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
unlock() |
final CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock
CycleDetectingReentrantReadLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock)
public void lock()
lock
in interface java.util.concurrent.locks.Lock
lock
in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
public void lockInterruptibly() throws java.lang.InterruptedException
lockInterruptibly
in interface java.util.concurrent.locks.Lock
lockInterruptibly
in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
java.lang.InterruptedException
public boolean tryLock()
tryLock
in interface java.util.concurrent.locks.Lock
tryLock
in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
public boolean tryLock(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
tryLock
in interface java.util.concurrent.locks.Lock
tryLock
in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
java.lang.InterruptedException
public void unlock()
unlock
in interface java.util.concurrent.locks.Lock
unlock
in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock