|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ConcurrentLinkedHashMap.EvictionPolicy> com.reardencommerce.kernel.collections.shared.evictable.ConcurrentLinkedHashMap.EvictionPolicy
public static enum ConcurrentLinkedHashMap.EvictionPolicy
The replacement policy to apply to determine which entry to discard when the capacity has been reached.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static ConcurrentLinkedHashMap.EvictionPolicy |
valueOf(java.lang.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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConcurrentLinkedHashMap.EvictionPolicy FIFO
public static final ConcurrentLinkedHashMap.EvictionPolicy SECOND_CHANCE
public static final ConcurrentLinkedHashMap.EvictionPolicy LRU
Method Detail |
---|
public static final ConcurrentLinkedHashMap.EvictionPolicy[] values()
for(ConcurrentLinkedHashMap.EvictionPolicy c : ConcurrentLinkedHashMap.EvictionPolicy.values()) System.out.println(c);
public static ConcurrentLinkedHashMap.EvictionPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |