VMware GemFire Java API Reference
Package org.apache.geode.cache
Class EvictionAction
- java.lang.Object
-
- javax.print.attribute.EnumSyntax
-
- org.apache.geode.cache.EvictionAction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
@Immutable public final class EvictionAction extends javax.print.attribute.EnumSyntax implements java.io.Serializable
The action that anEvictionAlgorithmtakes.- Since:
- GemFire 5.0
- See Also:
EvictionAlgorithm,EvictionAttributesImpl, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EvictionActionDEFAULT_EVICTION_ACTIONThe default eviction action is to locally destroy an Entry.static EvictionActionLOCAL_DESTROYPerform alocalDestoryon the least recently used region entry.static EvictionActionNONECanonical EvictionAction that represents no evictionstatic EvictionActionOVERFLOW_TO_DISKWrite the value of the least recently used region entry to disk andnull-out its value in the VM to free up heap space.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.print.attribute.EnumSyntax[]getEnumValueTable()protected java.lang.String[]getStringTable()booleanisLocalDestroy()booleanisNone()booleanisOverflowToDisk()static EvictionActionparseAction(java.lang.String s)static EvictionActionparseValue(int v)Returns the eviction action that corresponds to the given parameter.
-
-
-
Field Detail
-
NONE
@Immutable public static final EvictionAction NONE
Canonical EvictionAction that represents no eviction
-
LOCAL_DESTROY
@Immutable public static final EvictionAction LOCAL_DESTROY
Perform alocalDestoryon the least recently used region entry.
-
OVERFLOW_TO_DISK
@Immutable public static final EvictionAction OVERFLOW_TO_DISK
Write the value of the least recently used region entry to disk andnull-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.
-
DEFAULT_EVICTION_ACTION
@Immutable public static final EvictionAction DEFAULT_EVICTION_ACTION
The default eviction action is to locally destroy an Entry.
-
-
Method Detail
-
getStringTable
protected java.lang.String[] getStringTable()
- Overrides:
getStringTablein classjavax.print.attribute.EnumSyntax
-
getEnumValueTable
protected javax.print.attribute.EnumSyntax[] getEnumValueTable()
- Overrides:
getEnumValueTablein classjavax.print.attribute.EnumSyntax
-
isLocalDestroy
public boolean isLocalDestroy()
-
isOverflowToDisk
public boolean isOverflowToDisk()
-
isNone
public boolean isNone()
-
parseValue
public static EvictionAction parseValue(int v)
Returns the eviction action that corresponds to the given parameter. Returnsnullif no action corresponds.- Parameters:
v- the parameter representation of an eviction action- Returns:
- the eviction action that corresponds to the given parameter
- Since:
- GemFire 6.5
-
parseAction
public static EvictionAction parseAction(java.lang.String s)
- Parameters:
s- a String representation of an eviction action- Returns:
- the action parsed from the provided string. If there are problems with parsing NONE is returned.
-
-