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>
-
static class Striped.LargeLazyStriped<L> extends Striped.PowerOfTwoStriped<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>
-
-
Constructor Summary
Constructors Constructor Description LargeLazyStriped(int stripes, Supplier<L> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L
getAt(int index)
Returns the stripe at the specified index.int
size()
Returns the total number of stripes in this instance.-
Methods inherited from class com.google.common.util.concurrent.Striped.PowerOfTwoStriped
get, indexFor
-
Methods inherited from class com.google.common.util.concurrent.Striped
bulkGet, lazyWeakLock, lazyWeakReadWriteLock, lazyWeakSemaphore, lock, readWriteLock, semaphore
-
-