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.Locklock in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLockpublic void lockInterruptibly()
throws java.lang.InterruptedException
lockInterruptibly in interface java.util.concurrent.locks.LocklockInterruptibly in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLockjava.lang.InterruptedExceptionpublic boolean tryLock()
tryLock in interface java.util.concurrent.locks.LocktryLock in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLockpublic boolean tryLock(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
tryLock in interface java.util.concurrent.locks.LocktryLock in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLockjava.lang.InterruptedExceptionpublic void unlock()
unlock in interface java.util.concurrent.locks.Lockunlock in class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock