public static enum ConcurrentLinkedHashMap.EvictionPolicy extends Enum<ConcurrentLinkedHashMap.EvictionPolicy>
| Enum Constant and Description |
|---|
FIFO
Evicts entries based on insertion order.
|
LRU
Evicts entries based on how recently they are used, with the least
recent evicted first.
|
SECOND_CHANCE
Evicts entries based on insertion order, but gives an entry a
"second chance" if it has been requested recently.
|
| Modifier and Type | Method and Description |
|---|---|
static ConcurrentLinkedHashMap.EvictionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrentLinkedHashMap.EvictionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrentLinkedHashMap.EvictionPolicy FIFO
public static final ConcurrentLinkedHashMap.EvictionPolicy SECOND_CHANCE
public static final ConcurrentLinkedHashMap.EvictionPolicy LRU
public static ConcurrentLinkedHashMap.EvictionPolicy[] values()
for (ConcurrentLinkedHashMap.EvictionPolicy c : ConcurrentLinkedHashMap.EvictionPolicy.values()) System.out.println(c);
public static ConcurrentLinkedHashMap.EvictionPolicy 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 nullCopyright © 2014 Molindo GmbH. All Rights Reserved.