public static enum SamplingPolicy.EvictionPolicy extends Enum<SamplingPolicy.EvictionPolicy>
| Enum Constant and Description |
|---|
FIFO
Evicts entries based on insertion order.
|
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 SamplingPolicy.EvictionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SamplingPolicy.EvictionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SamplingPolicy.EvictionPolicy FIFO
public static final SamplingPolicy.EvictionPolicy LRU
public static final SamplingPolicy.EvictionPolicy MRU
public static final SamplingPolicy.EvictionPolicy LFU
public static final SamplingPolicy.EvictionPolicy MFU
public static final SamplingPolicy.EvictionPolicy RANDOM
public static SamplingPolicy.EvictionPolicy[] values()
for (SamplingPolicy.EvictionPolicy c : SamplingPolicy.EvictionPolicy.values()) System.out.println(c);
public static SamplingPolicy.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()