Class ConcurrentHashMap.ResizeContainer
java.lang.Object
org.eclipse.collections.impl.map.mutable.ConcurrentHashMap.ResizeContainer
- Enclosing class:
ConcurrentHashMap<K,
V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReferenceArray
private static final int
private final AtomicInteger
private final AtomicInteger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ResizeContainer
(AtomicReferenceArray nextArray, int oldSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
boolean
int
void
void
-
Field Details
-
QUEUE_INCREMENT
private static final int QUEUE_INCREMENT -
resizers
-
nextArray
-
queuePosition
-
-
Constructor Details
-
ResizeContainer
-
-
Method Details
-
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()
-