public final class MemoryStoreEvictionPolicy
extends java.lang.Object
implements java.io.Serializable
MemoryStore
.
This can be one of:
Modifier and Type | Class and Description |
---|---|
static class |
MemoryStoreEvictionPolicy.MemoryStoreEvictionPolicyEnum
Enum for
MemoryStoreEvictionPolicy |
Modifier and Type | Field and Description |
---|---|
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.
|
private static org.slf4j.Logger |
LOG |
static MemoryStoreEvictionPolicy |
LRU
LRU - least recently used.
|
private java.lang.String |
myName |
Modifier | Constructor and Description |
---|---|
private |
MemoryStoreEvictionPolicy(java.lang.String policy)
This class should not be subclassed or have instances created.
|
Modifier and Type | Method and Description |
---|---|
static MemoryStoreEvictionPolicy |
fromString(java.lang.String policy)
Converts a string representation of the policy into a policy.
|
java.lang.String |
toString() |
public static final MemoryStoreEvictionPolicy LRU
public static final MemoryStoreEvictionPolicy LFU
public static final MemoryStoreEvictionPolicy FIFO
public static final MemoryStoreEvictionPolicy CLOCK
private static final org.slf4j.Logger LOG
private final java.lang.String myName
private MemoryStoreEvictionPolicy(java.lang.String policy)
policy
- 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