@Immutable public final class EvictionAlgorithm extends EnumSyntax implements Serializable
EvictionActionEvictionAction,
EvictionAttributesImpl,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static EvictionAlgorithm |
LIFO_ENTRY
Deprecated.
For internal use only.
|
static EvictionAlgorithm |
LIFO_MEMORY
Deprecated.
For internal use only.
|
static EvictionAlgorithm |
LRU_ENTRY
An algorithm that considers the number of Entries in the Region before invoking its
EvictionAction |
static EvictionAlgorithm |
LRU_HEAP
An algorithm that considers the JVM heap size before invoking its
EvictionAction |
static EvictionAlgorithm |
LRU_MEMORY
An algorithm that considers the amount of bytes consumed by the Region before invoking its
EvictionAction |
static EvictionAlgorithm |
NONE
The canonical EvictionAction that represents no eviction action
|
| Modifier and Type | Method and Description |
|---|---|
protected EnumSyntax[] |
getEnumValueTable() |
protected String[] |
getStringTable() |
boolean |
isLIFO()
Deprecated.
For internal use only.
|
boolean |
isLRU()
returns true if this object uses a least-recently-used algorithm
|
boolean |
isLRUEntry() |
boolean |
isLRUHeap() |
boolean |
isLRUMemory() |
boolean |
isNone() |
static EvictionAlgorithm |
parseAction(String s) |
static EvictionAlgorithm |
parseValue(int v)
Returns the eviction algorithm that corresponds to the given parameter.
|
clone, getOffset, getValue, hashCode, readResolve, toString@Immutable public static final EvictionAlgorithm NONE
@Immutable public static final EvictionAlgorithm LRU_ENTRY
EvictionAction@Immutable public static final EvictionAlgorithm LRU_HEAP
EvictionAction@Immutable public static final EvictionAlgorithm LRU_MEMORY
EvictionAction@Deprecated @Immutable public static final EvictionAlgorithm LIFO_ENTRY
EvictionAction@Deprecated @Immutable public static final EvictionAlgorithm LIFO_MEMORY
EvictionActionprotected String[] getStringTable()
getStringTable in class EnumSyntaxprotected EnumSyntax[] getEnumValueTable()
getEnumValueTable in class EnumSyntaxpublic static EvictionAlgorithm parseValue(int v)
null if no algorithm corresponds.v - the parameter representation of an eviction algorithmpublic static EvictionAlgorithm parseAction(String s)
public boolean isLRUEntry()
public boolean isLRUMemory()
public boolean isLRUHeap()
public boolean isLRU()
public boolean isNone()
@Deprecated public boolean isLIFO()