|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.store.MemoryStoreEvictionPolicy
public final class MemoryStoreEvictionPolicy
A typesafe enumeration of eviction policies.
The policy used to evict elements from the MemoryStore.
This can be one of:
| Nested Class Summary | |
|---|---|
static class |
MemoryStoreEvictionPolicy.MemoryStoreEvictionPolicyEnum
Enum for MemoryStoreEvictionPolicy |
| Field Summary | |
|---|---|
static MemoryStoreEvictionPolicy |
CLOCK
FIFO - first in first out, the oldest element by creation time. |
static MemoryStoreEvictionPolicy |
FIFO
FIFO - first in first out, the oldest element by creation time. |
static MemoryStoreEvictionPolicy |
LFU
LFU - least frequently used. |
static MemoryStoreEvictionPolicy |
LRU
LRU - least recently used. |
| Method Summary | |
|---|---|
static MemoryStoreEvictionPolicy |
fromString(String policy)
Converts a string representation of the policy into a policy. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MemoryStoreEvictionPolicy LRU
public static final MemoryStoreEvictionPolicy LFU
public static final MemoryStoreEvictionPolicy FIFO
public static final MemoryStoreEvictionPolicy CLOCK
| Method Detail |
|---|
public String toString()
toString in class Objectpublic static MemoryStoreEvictionPolicy fromString(String policy)
policy - either LRU, LFU or FIFO
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||