|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.concurrent.locks.ReentrantLock groovyx.gpars.extra166y.CustomConcurrentHashMap.Segment
static final class CustomConcurrentHashMap.Segment
Each Segment holds a count and table corresponding to a segment of the table. This class contains only those methods for directly assigning these fields, which must only be called while holding locks
Field Summary | |
---|---|
(package private) int |
count
|
(package private) CustomConcurrentHashMap.Node[] |
table
|
Constructor Summary | |
---|---|
CustomConcurrentHashMap.Segment()
|
Method Summary | |
---|---|
(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 |
Methods inherited from class java.util.concurrent.locks.ReentrantLock |
---|
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
volatile CustomConcurrentHashMap.Node[] table
int count
Constructor Detail |
---|
CustomConcurrentHashMap.Segment()
Method Detail |
---|
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)
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |