K - Map key.V - Map entry.public class GridBoundedConcurrentLinkedHashMap<K,V> extends ConcurrentLinkedHashMap<K,V>
ConcurrentLinkedHashMap.HashEntry<K,V>, ConcurrentLinkedHashMap.QueuePolicyAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>DFLT_CONCUR_LVL, DFLT_INIT_CAP, DFLT_LOAD_FACTOR, MAX_CAP_LIMIT, MAX_SEGS, RETRIES_BEFORE_LOCK| Constructor and Description |
|---|
GridBoundedConcurrentLinkedHashMap(int max)
Creates a new, empty map with a default initial capacity (16),
load factor (0.75) and concurrencyLevel (16).
|
GridBoundedConcurrentLinkedHashMap(int max,
int initCap)
Creates a new, empty map with the specified initial capacity,
and with default load factor (0.75) and concurrencyLevel (16).
|
GridBoundedConcurrentLinkedHashMap(int max,
int initCap,
float loadFactor)
Creates a new, empty map with the specified initial capacity
and load factor and with the default concurrencyLevel (16).
|
GridBoundedConcurrentLinkedHashMap(int max,
int initCap,
float loadFactor,
int concurLvl)
Creates a new, empty map with the specified initial
capacity, load factor and concurrency level.
|
GridBoundedConcurrentLinkedHashMap(int max,
int initCap,
float loadFactor,
int concurLvl,
ConcurrentLinkedHashMap.QueuePolicy qPlc)
Creates a new, empty map with the specified initial
capacity, load factor and concurrency level.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
clear, contains, containsKey, containsValue, descendingElements, descendingEntrySet, descendingKeys, descendingKeySet, descendingValues, elements, entrySet, get, getSafe, isEmpty, isEmptyx, keys, keySet, policy, put, putAll, putIfAbsent, queue, remove, remove, replace, replace, replacex, size, sizex, valuesclone, equals, hashCodepublic GridBoundedConcurrentLinkedHashMap(int max)
max - Upper bound of this map.public GridBoundedConcurrentLinkedHashMap(int max,
int initCap)
max - Upper bound of this map.initCap - the initial capacity. The implementation
performs internal sizing to accommodate this many elements.IllegalArgumentException - if the initial capacity of
elements is negative.public GridBoundedConcurrentLinkedHashMap(int max,
int initCap,
float loadFactor)
max - Upper bound of this map.initCap - The implementation performs internal
sizing to accommodate this many elements.loadFactor - the load factor threshold, used to control resizing.
Resizing may be performed when the average number of elements per
bin exceeds this threshold.IllegalArgumentException - if the initial capacity of
elements is negative or the load factor is nonpositive.public GridBoundedConcurrentLinkedHashMap(int max,
int initCap,
float loadFactor,
int concurLvl)
max - Upper bound of this map.initCap - the initial capacity. The implementation
performs internal sizing to accommodate this many elements.loadFactor - the load factor threshold, used to control resizing.
Resizing may be performed when the average number of elements per
bin exceeds this threshold.concurLvl - the estimated number of concurrently
updating threads. The implementation performs internal sizing
to try to accommodate this many threads.IllegalArgumentException - if the initial capacity is
negative or the load factor or concurLvl are
nonpositive.public GridBoundedConcurrentLinkedHashMap(int max,
int initCap,
float loadFactor,
int concurLvl,
ConcurrentLinkedHashMap.QueuePolicy qPlc)
max - Upper bound of this map.initCap - the initial capacity. The implementation
performs internal sizing to accommodate this many elements.loadFactor - the load factor threshold, used to control resizing.
Resizing may be performed when the average number of elements per
bin exceeds this threshold.concurLvl - the estimated number of concurrently
updating threads. The implementation performs internal sizing
to try to accommodate this many threads.qPlc - Queue policy.IllegalArgumentException - if the initial capacity is
negative or the load factor or concurLvl are
nonpositive.public String toString()
toString in class AbstractMap<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015