@Immutable public final class EvictionAlgorithm extends EnumSyntax implements Serializable
EvictionAction
EvictionAction
,
EvictionAttributesImpl
,
Serialized FormModifier 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 action the 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
@Immutable public static final EvictionAlgorithm LIFO_ENTRY
EvictionAction
@Immutable public static final EvictionAlgorithm LIFO_MEMORY
EvictionAction
protected String[] getStringTable()
getStringTable
in class EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
in class EnumSyntax
public static EvictionAlgorithm parseValue(int v)
null
if no action corresponds.public static EvictionAlgorithm parseAction(String s)
public boolean isLRUEntry()
public boolean isLRUMemory()
public boolean isLRUHeap()
public boolean isLRU()
public boolean isNone()
public boolean isLIFO()