Package org.apache.geode.cache
Class EvictionAction
java.lang.Object
javax.print.attribute.EnumSyntax
org.apache.geode.cache.EvictionAction
- All Implemented Interfaces:
Serializable,Cloneable
The action that an
EvictionAlgorithm takes.- Since:
- GemFire 5.0
- See Also:
-
EvictionAlgorithmEvictionAttributesImpl- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EvictionActionThe default eviction action is to locally destroy an Entry.static final EvictionActionPerform alocalDestoryon the least recently used region entry.static final EvictionActionCanonical EvictionAction that represents no evictionstatic final EvictionActionWrite 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
Modifier and TypeMethodDescriptionprotected EnumSyntax[]protected String[]booleanbooleanisNone()booleanstatic EvictionActionstatic EvictionActionparseValue(int v) Returns the eviction action that corresponds to the given parameter.Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
-
Field Details
-
NONE
Canonical EvictionAction that represents no eviction -
LOCAL_DESTROY
Perform alocalDestoryon the least recently used region entry. -
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
The default eviction action is to locally destroy an Entry.
-
-
Method Details
-
getStringTable
- Overrides:
getStringTablein classEnumSyntax
-
getEnumValueTable
- Overrides:
getEnumValueTablein classEnumSyntax
-
isLocalDestroy
public boolean isLocalDestroy() -
isOverflowToDisk
public boolean isOverflowToDisk() -
isNone
public boolean isNone() -
parseValue
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
- 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.
-