Class Striped.SmallLazyStriped<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.SmallLazyStriped<L>
Implementation of Striped where up to 2^k stripes can be represented, using an
AtomicReferenceArray of size 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 ClassesModifier and TypeClassDescriptionprivate static final class
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 AtomicReferenceArray
<Striped.SmallLazyStriped.ArrayReference<? extends L>> (package private) final ReferenceQueue
<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 -
queue
-
-
Constructor Details
-
SmallLazyStriped
-
-
Method Details