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