Class CycleDetectingLockFactory.CycleDetectingReentrantReadLock
java.lang.Object
java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
com.google.common.util.concurrent.CycleDetectingLockFactory.CycleDetectingReentrantReadLock
- All Implemented Interfaces:
Serializable,Lock
- Enclosing class:
CycleDetectingLockFactory
private class CycleDetectingLockFactory.CycleDetectingReentrantReadLock
extends ReentrantReadWriteLock.ReadLock
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock -
Constructor Summary
ConstructorsConstructorDescriptionCycleDetectingReentrantReadLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock) -
Method Summary
Methods inherited from class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
newCondition, toString
-
Field Details
-
readWriteLock
-
-
Constructor Details
-
CycleDetectingReentrantReadLock
CycleDetectingReentrantReadLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock)
-
-
Method Details
-
lock
public void lock()- Specified by:
lockin interfaceLock- Overrides:
lockin classReentrantReadWriteLock.ReadLock
-
lockInterruptibly
- Specified by:
lockInterruptiblyin interfaceLock- Overrides:
lockInterruptiblyin classReentrantReadWriteLock.ReadLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock()- Specified by:
tryLockin interfaceLock- Overrides:
tryLockin classReentrantReadWriteLock.ReadLock
-
tryLock
- Specified by:
tryLockin interfaceLock- Overrides:
tryLockin classReentrantReadWriteLock.ReadLock- Throws:
InterruptedException
-
unlock
public void unlock()- Specified by:
unlockin interfaceLock- Overrides:
unlockin classReentrantReadWriteLock.ReadLock
-