public static enum SampledPolicy.EvictionPolicy extends Enum<SampledPolicy.EvictionPolicy>
| Enum Constant and Description |
|---|
FIFO
Evicts entries based on insertion order.
|
HYPERBOLIC
Evicts entries based on how frequently they are used divided by their age.
|
LFU
Evicts entries based on how frequently they are used, with the least frequent evicted first.
|
LRU
Evicts entries based on how recently they are used, with the least recent evicted first.
|
MFU
Evicts entries based on how frequently they are used, with the most frequent evicted first.
|
MRU
Evicts entries based on how recently they are used, with the least recent evicted first.
|
RANDOM
Evicts a random entry.
|
| Modifier and Type | Method and Description |
|---|---|
String |
label() |
static SampledPolicy.EvictionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SampledPolicy.EvictionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SampledPolicy.EvictionPolicy FIFO
public static final SampledPolicy.EvictionPolicy LRU
public static final SampledPolicy.EvictionPolicy MRU
public static final SampledPolicy.EvictionPolicy LFU
public static final SampledPolicy.EvictionPolicy MFU
public static final SampledPolicy.EvictionPolicy RANDOM
public static final SampledPolicy.EvictionPolicy HYPERBOLIC
public static SampledPolicy.EvictionPolicy[] values()
for (SampledPolicy.EvictionPolicy c : SampledPolicy.EvictionPolicy.values()) System.out.println(c);
public static SampledPolicy.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()