Oracle® Coherence Java API Reference
v3.5

E14977-01

com.tangosol.util
Class SegmentedHashMap.Segment

java.lang.Object
  extended by com.tangosol.util.SegmentedHashMap.Segment
Enclosing class:
SegmentedHashMap

protected static class SegmentedHashMap.Segment
extends java.lang.Object

Segment metadata.


Field Summary
protected  int cEntries
          The number of Entry objects (including synthetics) in this segment.
protected  boolean fContend
          Are any threads contending to lock this segment?
 
Constructor Summary
protected SegmentedHashMap.Segment()
           
 

Field Detail

cEntries

protected int cEntries
The number of Entry objects (including synthetics) in this segment.

Note: On a JSR-133 non-compliant JVM, this value may be stale to some extent. It is only used as an internal growth statistic, so this is acceptable. On JSR-133 compliant JVMs, the segment lock under which this value is modified performs an atomic CAS which would guarantee that writes get flushed.


fContend

protected volatile boolean fContend
Are any threads contending to lock this segment?

Constructor Detail

SegmentedHashMap.Segment

protected SegmentedHashMap.Segment()

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.