public static enum ConcurrentLinkedHashMap.QueuePolicy extends Enum<ConcurrentLinkedHashMap.QueuePolicy>
Enum Constant and Description |
---|
PER_SEGMENT_Q
Instance of
ArrayDeque is created for each segment. |
PER_SEGMENT_Q_OPTIMIZED_RMV
Instance of
GridConcurrentLinkedDequeue is created for each segment. |
SINGLE_Q
Default policy.
|
Modifier and Type | Method and Description |
---|---|
static ConcurrentLinkedHashMap.QueuePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrentLinkedHashMap.QueuePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrentLinkedHashMap.QueuePolicy SINGLE_Q
public static final ConcurrentLinkedHashMap.QueuePolicy PER_SEGMENT_Q
ArrayDeque
is created for each segment. This gives
the fastest "natural" evicts for bounded maps.
NOTE: Remove operations on map are slower than with other policies.
NOTE: Iteration order is not preserved, i.e. iteration goes as if it was ordinary hash map.
public static final ConcurrentLinkedHashMap.QueuePolicy PER_SEGMENT_Q_OPTIMIZED_RMV
GridConcurrentLinkedDequeue
is created for each segment. This gives
faster "natural" evicts for bounded queues and better remove operation times.
NOTE: Iteration order is not preserved, i.e. iteration goes as if it was ordinary hash map.
public static ConcurrentLinkedHashMap.QueuePolicy[] values()
for (ConcurrentLinkedHashMap.QueuePolicy c : ConcurrentLinkedHashMap.QueuePolicy.values()) System.out.println(c);
public static ConcurrentLinkedHashMap.QueuePolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0.final Release Date : December 29 2015