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:
lock
in interfaceLock
- Overrides:
lock
in classReentrantReadWriteLock.ReadLock
-
lockInterruptibly
- Specified by:
lockInterruptibly
in interfaceLock
- Overrides:
lockInterruptibly
in classReentrantReadWriteLock.ReadLock
- Throws:
InterruptedException
-
tryLock
public boolean tryLock()- Specified by:
tryLock
in interfaceLock
- Overrides:
tryLock
in classReentrantReadWriteLock.ReadLock
-
tryLock
- Specified by:
tryLock
in interfaceLock
- Overrides:
tryLock
in classReentrantReadWriteLock.ReadLock
- Throws:
InterruptedException
-
unlock
public void unlock()- Specified by:
unlock
in interfaceLock
- Overrides:
unlock
in classReentrantReadWriteLock.ReadLock
-