Package com.tangosol.util
Class SegmentedHashSet
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractSet
- 
- com.tangosol.util.MapSet
- 
- com.tangosol.util.SegmentedHashSet
 
 
 
 
- 
- All Implemented Interfaces:
- ExternalizableLite,- Externalizable,- Serializable,- Cloneable,- Iterable,- Collection,- Set
 
 public class SegmentedHashSet extends MapSet An implementation of java.util.Set that is optimized for heavy concurrent use.- Since:
- Coherence 3.5.1
- Author:
- jh 2009.08.28
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SegmentedHashSet()Construct a thread-safe hash set using the default settings.SegmentedHashSet(int cInitialBuckets, float flLoadFactor, float flGrowthRate)Construct a thread-safe hash set using the specified settings.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MapinstantiateMap()Factory pattern: Provide an underlying Map for this Set implementation to store its contents in.- 
Methods inherited from class com.tangosol.util.MapSetadd, addAll, clear, clone, contains, containsAll, getMap, iterator, readExternal, readExternal, remove, removeAll, retainAll, size, toArray, toArray, writeExternal, writeExternal
 - 
Methods inherited from class java.util.AbstractSetequals, hashCode
 - 
Methods inherited from class java.util.AbstractCollectionisEmpty, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface java.util.SetisEmpty, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
SegmentedHashSetpublic SegmentedHashSet() Construct a thread-safe hash set using the default settings.
 - 
SegmentedHashSetpublic SegmentedHashSet(int cInitialBuckets, float flLoadFactor, float flGrowthRate)Construct a thread-safe hash set using the specified settings.- Parameters:
- cInitialBuckets- the initial number of hash buckets, 0 < n
- flLoadFactor- the acceptable load factor before resizing occurs, 0 < n, such that a load factor of 1.0 causes resizing when the number of entries exceeds the number of buckets
- flGrowthRate- the rate of bucket growth when a resize occurs, 0 < n, such that a growth rate of 1.0 will double the number of buckets: bucketcount = bucketcount * (1 + growthrate)
 
 
- 
 - 
Method Detail- 
instantiateMapprotected Map instantiateMap() Factory pattern: Provide an underlying Map for this Set implementation to store its contents in.- Overrides:
- instantiateMapin class- MapSet
- Returns:
- a new Map instance
 
 
- 
 
-