Class ForwardingLock
java.lang.Object
com.google.common.util.concurrent.ForwardingLock
- All Implemented Interfaces:
Lock
- Direct Known Subclasses:
Striped.WeakSafeLock
Forwarding wrapper around a
Lock
.-
Constructor Details
-
ForwardingLock
ForwardingLock()
-
-
Method Details
-
delegate
-
lock
public void lock() -
lockInterruptibly
- Specified by:
lockInterruptibly
in interfaceLock
- Throws:
InterruptedException
-
tryLock
public boolean tryLock() -
tryLock
- Specified by:
tryLock
in interfaceLock
- Throws:
InterruptedException
-
unlock
public void unlock() -
newCondition
- Specified by:
newCondition
in interfaceLock
-