Class ConcurrentHashMapUnsafe.ResizeContainer
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.ConcurrentHashMapUnsafe.ResizeContainer
-
- Enclosing class:
- ConcurrentHashMapUnsafe<K,V>
private static final class ConcurrentHashMapUnsafe.ResizeContainer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
nextArray
private static int
QUEUE_INCREMENT
private java.util.concurrent.atomic.AtomicInteger
queuePosition
private java.util.concurrent.atomic.AtomicInteger
resizers
-
Constructor Summary
Constructors Modifier Constructor Description private
ResizeContainer(java.lang.Object[] nextArray, int oldSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decrementResizerAndNotify()
int
getQueuePosition()
void
incrementResizer()
boolean
isNotDone()
int
subtractAndGetQueuePosition()
void
waitForAllResizers()
void
zeroOutQueuePosition()
-
-
-
Method Detail
-
incrementResizer
public void incrementResizer()
-
decrementResizerAndNotify
public void decrementResizerAndNotify()
-
getQueuePosition
public int getQueuePosition()
-
subtractAndGetQueuePosition
public int subtractAndGetQueuePosition()
-
waitForAllResizers
public void waitForAllResizers()
-
isNotDone
public boolean isNotDone()
-
zeroOutQueuePosition
public void zeroOutQueuePosition()
-
-