Class Striped.WeakSafeReadWriteLock
- java.lang.Object
-
- com.google.common.util.concurrent.Striped.WeakSafeReadWriteLock
-
- All Implemented Interfaces:
java.util.concurrent.locks.ReadWriteLock
private static final class Striped.WeakSafeReadWriteLock extends java.lang.Object implements java.util.concurrent.locks.ReadWriteLock
ReadWriteLock implementation whose read and write locks retain a reference back to this lock. Otherwise, a reference to just the read lock or just the write lock would not suffice to ensure theReadWriteLock
is retained.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.locks.ReadWriteLock
delegate
-
Constructor Summary
Constructors Constructor Description WeakSafeReadWriteLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.locks.Lock
readLock()
java.util.concurrent.locks.Lock
writeLock()
-