|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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:
Field Summary | |
---|---|
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(java.lang.String policy)
Converts a string representation of the policy into a policy. |
java.lang.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
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static MemoryStoreEvictionPolicy fromString(java.lang.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 |