org.castor.util.concurrent
Class ConcurrentHashMap.Segment
java.lang.Object
org.castor.util.concurrent.ConcurrentHashMap.Segment
- ConcurrentHashMap
- Serializable
protected static final class ConcurrentHashMap.Segment
extends java.lang.Object
implements Serializable
Bookkeeping for each concurrency control segment. Each segment contains a
local count of the number of elements in its region. However, the main
use of a Segment is for its lock.
protected int | count - The number of elements in this segment's region.
|
protected int | getCount() - Get the count under synch.
|
protected void | synch() - Force a synchronization
|
count
protected int count
The number of elements in this segment's region. It is always updated
within synchronized blocks.
getCount
protected int getCount()
Get the count under synch.
synch
protected void synch()
Force a synchronization
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com