Class CycleDetectingLockFactory.CycleDetectingReentrantWriteLock
- java.lang.Object
-
- java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
- com.google.common.util.concurrent.CycleDetectingLockFactory.CycleDetectingReentrantWriteLock
-
- All Implemented Interfaces:
java.io.Serializable,java.util.concurrent.locks.Lock
- Enclosing class:
- CycleDetectingLockFactory
private class CycleDetectingLockFactory.CycleDetectingReentrantWriteLock extends java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLockreadWriteLock
-
Constructor Summary
Constructors Constructor Description CycleDetectingReentrantWriteLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlock()voidlockInterruptibly()booleantryLock()booleantryLock(long timeout, java.util.concurrent.TimeUnit unit)voidunlock()
-
-
-
Field Detail
-
readWriteLock
final CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock
-
-
Constructor Detail
-
CycleDetectingReentrantWriteLock
CycleDetectingReentrantWriteLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock)
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lockin interfacejava.util.concurrent.locks.Lock- Overrides:
lockin classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
lockInterruptibly
public void lockInterruptibly() throws java.lang.InterruptedException- Specified by:
lockInterruptiblyin interfacejava.util.concurrent.locks.Lock- Overrides:
lockInterruptiblyin classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock- Throws:
java.lang.InterruptedException
-
tryLock
public boolean tryLock()
- Specified by:
tryLockin interfacejava.util.concurrent.locks.Lock- Overrides:
tryLockin classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
tryLock
public boolean tryLock(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException- Specified by:
tryLockin interfacejava.util.concurrent.locks.Lock- Overrides:
tryLockin classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock- Throws:
java.lang.InterruptedException
-
unlock
public void unlock()
- Specified by:
unlockin interfacejava.util.concurrent.locks.Lock- Overrides:
unlockin classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
-