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