Class Striped.LargeLazyStriped<L>
java.lang.Object
com.google.common.util.concurrent.Striped<L>
com.google.common.util.concurrent.Striped.PowerOfTwoStriped<L>
com.google.common.util.concurrent.Striped.LargeLazyStriped<L>
Implementation of Striped where up to 2^k stripes can be represented, using a ConcurrentMap
where the key domain is [0..2^k). To map a user key into a stripe, we take a k-bit slice of the
user key's (smeared) hashCode(). The stripes are lazily initialized and are weakly referenced.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.util.concurrent.Striped
Striped.LargeLazyStriped<L>, Striped.SmallLazyStriped<L>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ConcurrentMap
<Integer, L> (package private) final int
Fields inherited from class com.google.common.util.concurrent.Striped.PowerOfTwoStriped
mask
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.util.concurrent.Striped.PowerOfTwoStriped
get, indexFor
Methods inherited from class com.google.common.util.concurrent.Striped
bulkGet, custom, lazyWeakCustom, lazyWeakLock, lazyWeakReadWriteLock, lazyWeakSemaphore, lock, readWriteLock, semaphore
-
Field Details
-
locks
-
supplier
-
size
final int size
-
-
Constructor Details
-
LargeLazyStriped
-
-
Method Details