static class Striped.LargeLazyStriped<L> extends Striped.PowerOfTwoStriped<L>
Striped.LargeLazyStriped<L>, Striped.SmallLazyStriped<L>
Modifier and Type | Field and Description |
---|---|
(package private) java.util.concurrent.ConcurrentMap<java.lang.Integer,L> |
locks |
(package private) int |
size |
(package private) Supplier<L> |
supplier |
mask
Constructor and Description |
---|
LargeLazyStriped(int stripes,
Supplier<L> supplier) |
Modifier and Type | Method and Description |
---|---|
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, lazyWeakLock, lazyWeakReadWriteLock, lazyWeakSemaphore, lock, readWriteLock, semaphore