|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Eviction.Prioritizer>
org.ehcache.config.Eviction.Prioritizer
public static enum Eviction.Prioritizer
Enumeration holding default EvictionPrioritizer
instances.
Enum Constant Summary | |
---|---|
FIFO
First In, First Out EvictionPrioritizer . |
|
LFU
Least Frequently Used EvictionPrioritizer . |
|
LRU
Least Recently Used EvictionPrioritizer . |
Method Summary | |
---|---|
static Eviction.Prioritizer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Eviction.Prioritizer[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
compare, equals |
Enum Constant Detail |
---|
public static final Eviction.Prioritizer LRU
EvictionPrioritizer
.
Ranks eviction candidates by their last access time. The entry which was last accessed the longest time ago is considered the most eligible for eviction.
public static final Eviction.Prioritizer LFU
EvictionPrioritizer
.
Ranks eviction candidates by their frequency of use. The entry which has the lowest hit rate is considered the most eligible for eviction.
public static final Eviction.Prioritizer FIFO
EvictionPrioritizer
.
Ranks eviction candidates by their time of creation. The entry which was created the earliest is considered the most eligible for eviction.
Method Detail |
---|
public static Eviction.Prioritizer[] values()
for (Eviction.Prioritizer c : Eviction.Prioritizer.values()) System.out.println(c);
public static Eviction.Prioritizer 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
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |