Package EDU.oswego.cs.dl.util.concurrent
Class ConcurrentHashMap.Segment
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.Segment
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ConcurrentHashMap
protected static final class ConcurrentHashMap.Segment extends 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
count
The number of elements in this segment's region.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Segment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getCount()
Get the count under synch.protected void
synch()
Force a synchronization
-