@Immutable public final class EvictionAction extends EnumSyntax implements Serializable
EvictionAlgorithm
takes.EvictionAlgorithm
,
EvictionAttributesImpl
,
Serialized FormModifier and Type | Field and Description |
---|---|
static EvictionAction |
DEFAULT_EVICTION_ACTION
The default eviction action is to locally destroy an Entry.
|
static EvictionAction |
LOCAL_DESTROY
Perform a
localDestory on the least
recently used region entry. |
static EvictionAction |
NONE
Canonical EvictionAction that represents no eviction
|
static EvictionAction |
OVERFLOW_TO_DISK
Write the value of the least recently used region entry to disk and
null -out its
value in the VM to free up heap space. |
Modifier and Type | Method and Description |
---|---|
protected EnumSyntax[] |
getEnumValueTable() |
protected String[] |
getStringTable() |
boolean |
isLocalDestroy() |
boolean |
isNone() |
boolean |
isOverflowToDisk() |
static EvictionAction |
parseAction(String s) |
static EvictionAction |
parseValue(int v)
Returns the eviction action that corresponds to the given parameter.
|
clone, getOffset, getValue, hashCode, readResolve, toString
@Immutable public static final EvictionAction NONE
@Immutable public static final EvictionAction LOCAL_DESTROY
localDestory
on the least
recently used region entry.@Immutable public static final EvictionAction OVERFLOW_TO_DISK
null
-out its
value in the VM to free up heap space. Note that this action is only available when the region
has been configured to access data on disk.@Immutable public static final EvictionAction DEFAULT_EVICTION_ACTION
protected String[] getStringTable()
getStringTable
in class EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
in class EnumSyntax
public boolean isLocalDestroy()
public boolean isOverflowToDisk()
public boolean isNone()
public static EvictionAction parseValue(int v)
null
if no action corresponds.v
- the parameter representation of an eviction actionpublic static EvictionAction parseAction(String s)
s
- a String representation of an eviction action