Class Striped.WeakSafeLock
java.lang.Object
com.google.common.util.concurrent.ForwardingLock
com.google.common.util.concurrent.Striped.WeakSafeLock
- All Implemented Interfaces:
Lock
Lock object that ensures a strong reference is retained to a specified object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.util.concurrent.ForwardingLock
lock, lockInterruptibly, tryLock, tryLock, unlock
-
Field Details
-
delegate
-
strongReference
-
-
Constructor Details
-
WeakSafeLock
WeakSafeLock(Lock delegate, Striped.WeakSafeReadWriteLock strongReference)
-
-
Method Details
-
delegate
Lock delegate()- Specified by:
delegate
in classForwardingLock
-
newCondition
- Specified by:
newCondition
in interfaceLock
- Overrides:
newCondition
in classForwardingLock
-