static class Striped.SmallLazyStriped<L> extends Striped.PowerOfTwoStriped<L>
Modifier and Type | Class and Description |
---|---|
private static class |
Striped.SmallLazyStriped.ArrayReference<L> |
Striped.LargeLazyStriped<L>, Striped.SmallLazyStriped<L>
Modifier and Type | Field and Description |
---|---|
(package private) java.util.concurrent.atomic.AtomicReferenceArray<Striped.SmallLazyStriped.ArrayReference<? extends L>> |
locks |
(package private) java.lang.ref.ReferenceQueue<L> |
queue |
(package private) int |
size |
(package private) Supplier<L> |
supplier |
mask
Constructor and Description |
---|
SmallLazyStriped(int stripes,
Supplier<L> supplier) |
Modifier and Type | Method and Description |
---|---|
private void |
drainQueue() |
L |
getAt(int index)
Returns the stripe at the specified index.
|
int |
size()
Returns the total number of stripes in this instance.
|
get, indexFor
bulkGet, custom, lazyWeakLock, lazyWeakReadWriteLock, lazyWeakSemaphore, lock, readWriteLock, semaphore
final java.util.concurrent.atomic.AtomicReferenceArray<Striped.SmallLazyStriped.ArrayReference<? extends L>> locks
final int size
final java.lang.ref.ReferenceQueue<L> queue