static final class CustomConcurrentHashMap.Segment
extends java.util.concurrent.locks.ReentrantLock
Modifier and Type | Field and Description |
---|---|
(package private) int |
count |
(package private) CustomConcurrentHashMap.Node[] |
table |
Constructor and Description |
---|
CustomConcurrentHashMap.Segment() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clearCount() |
(package private) void |
decrementCount() |
(package private) CustomConcurrentHashMap.Node[] |
getTableForAdd(CustomConcurrentHashMap cchm) |
(package private) CustomConcurrentHashMap.Node[] |
getTableForTraversal() |
(package private) void |
incrementCount() |
(package private) CustomConcurrentHashMap.Node[] |
resizeTable(CustomConcurrentHashMap cchm)
See the similar code in ConcurrentHashMap for explanation.
|
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
volatile CustomConcurrentHashMap.Node[] table
int count
final void decrementCount()
final void clearCount()
final void incrementCount()
final CustomConcurrentHashMap.Node[] getTableForTraversal()
final CustomConcurrentHashMap.Node[] getTableForAdd(CustomConcurrentHashMap cchm)
final CustomConcurrentHashMap.Node[] resizeTable(CustomConcurrentHashMap cchm)