Package org.apache.geode.cache
Class EvictionAlgorithm
java.lang.Object
javax.print.attribute.EnumSyntax
org.apache.geode.cache.EvictionAlgorithm
- All Implemented Interfaces:
Serializable,Cloneable
The algorithm used to determine when to perform an
EvictionAction- Since:
- GemFire 5.0
- See Also:
-
EvictionActionEvictionAttributesImpl- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EvictionAlgorithmDeprecated.For internal use only.static final EvictionAlgorithmDeprecated.For internal use only.static final EvictionAlgorithmAn algorithm that considers the number of Entries in the Region before invoking itsEvictionActionstatic final EvictionAlgorithmAn algorithm that considers the JVM heap size before invoking itsEvictionActionstatic final EvictionAlgorithmAn algorithm that considers the amount of bytes consumed by the Region before invoking itsEvictionActionstatic final EvictionAlgorithmThe canonical EvictionAction that represents no eviction action -
Method Summary
Modifier and TypeMethodDescriptionprotected EnumSyntax[]protected String[]booleanisLIFO()Deprecated.For internal use only.booleanisLRU()returns true if this object uses a least-recently-used algorithmbooleanbooleanbooleanbooleanisNone()static EvictionAlgorithmstatic EvictionAlgorithmparseValue(int v) Returns the eviction algorithm that corresponds to the given parameter.Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
-
Field Details
-
NONE
The canonical EvictionAction that represents no eviction action -
LRU_ENTRY
An algorithm that considers the number of Entries in the Region before invoking itsEvictionAction -
LRU_HEAP
An algorithm that considers the JVM heap size before invoking itsEvictionAction -
LRU_MEMORY
An algorithm that considers the amount of bytes consumed by the Region before invoking itsEvictionAction -
LIFO_ENTRY
Deprecated.For internal use only.An algorithm that considers the number of Entries in the Region before invoking itsEvictionAction -
LIFO_MEMORY
Deprecated.For internal use only.An algorithm that considers the amount of bytes consumed by the Region before invoking itsEvictionAction
-
-
Method Details
-
getStringTable
- Overrides:
getStringTablein classEnumSyntax
-
getEnumValueTable
- Overrides:
getEnumValueTablein classEnumSyntax
-
parseValue
Returns the eviction algorithm that corresponds to the given parameter. Returnsnullif no algorithm corresponds.- Parameters:
v- the parameter representation of an eviction algorithm- Returns:
- the eviction algorithm that corresponds to the given parameter
- Since:
- GemFire 6.5
-
parseAction
-
isLRUEntry
public boolean isLRUEntry() -
isLRUMemory
public boolean isLRUMemory() -
isLRUHeap
public boolean isLRUHeap() -
isLRU
public boolean isLRU()returns true if this object uses a least-recently-used algorithm- Returns:
- whether this object uses a least-recently-used algorithm
-
isNone
public boolean isNone() -
isLIFO
Deprecated.For internal use only.- Returns:
- whether this object uses a last-in-first-out algorithm
-