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.CycleDetectingReentrantReadWriteLock
readWriteLock
-
Constructor Summary
Constructors Constructor Description CycleDetectingReentrantWriteLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
lock()
void
lockInterruptibly()
boolean
tryLock()
boolean
tryLock(long timeout, java.util.concurrent.TimeUnit unit)
void
unlock()
-
-
-
Field Detail
-
readWriteLock
final CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock
-
-
Constructor Detail
-
CycleDetectingReentrantWriteLock
CycleDetectingReentrantWriteLock(CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock readWriteLock)
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lock
in interfacejava.util.concurrent.locks.Lock
- Overrides:
lock
in classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
lockInterruptibly
public void lockInterruptibly() throws java.lang.InterruptedException
- Specified by:
lockInterruptibly
in interfacejava.util.concurrent.locks.Lock
- Overrides:
lockInterruptibly
in classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
- Throws:
java.lang.InterruptedException
-
tryLock
public boolean tryLock()
- Specified by:
tryLock
in interfacejava.util.concurrent.locks.Lock
- Overrides:
tryLock
in classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
tryLock
public boolean tryLock(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
- Specified by:
tryLock
in interfacejava.util.concurrent.locks.Lock
- Overrides:
tryLock
in classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
- Throws:
java.lang.InterruptedException
-
unlock
public void unlock()
- Specified by:
unlock
in interfacejava.util.concurrent.locks.Lock
- Overrides:
unlock
in classjava.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
-
-