VMware GemFire Java API Reference
Package org.apache.geode.cache
Class EvictionAlgorithm
- java.lang.Object
-
- javax.print.attribute.EnumSyntax
-
- org.apache.geode.cache.EvictionAlgorithm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
@Immutable public final class EvictionAlgorithm extends javax.print.attribute.EnumSyntax implements java.io.Serializable
The algorithm used to determine when to perform anEvictionAction- Since:
- GemFire 5.0
- See Also:
EvictionAction,EvictionAttributesImpl, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EvictionAlgorithmLIFO_ENTRYDeprecated.For internal use only.static EvictionAlgorithmLIFO_MEMORYDeprecated.For internal use only.static EvictionAlgorithmLRU_ENTRYAn algorithm that considers the number of Entries in the Region before invoking itsEvictionActionstatic EvictionAlgorithmLRU_HEAPAn algorithm that considers the JVM heap size before invoking itsEvictionActionstatic EvictionAlgorithmLRU_MEMORYAn algorithm that considers the amount of bytes consumed by the Region before invoking itsEvictionActionstatic EvictionAlgorithmNONEThe canonical EvictionAction that represents no eviction action
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected javax.print.attribute.EnumSyntax[]getEnumValueTable()protected java.lang.String[]getStringTable()booleanisLIFO()Deprecated.For internal use only.booleanisLRU()returns true if this object uses a least-recently-used algorithmbooleanisLRUEntry()booleanisLRUHeap()booleanisLRUMemory()booleanisNone()static EvictionAlgorithmparseAction(java.lang.String s)static EvictionAlgorithmparseValue(int v)Returns the eviction algorithm that corresponds to the given parameter.
-
-
-
Field Detail
-
NONE
@Immutable public static final EvictionAlgorithm NONE
The canonical EvictionAction that represents no eviction action
-
LRU_ENTRY
@Immutable public static final EvictionAlgorithm LRU_ENTRY
An algorithm that considers the number of Entries in the Region before invoking itsEvictionAction
-
LRU_HEAP
@Immutable public static final EvictionAlgorithm LRU_HEAP
An algorithm that considers the JVM heap size before invoking itsEvictionAction
-
LRU_MEMORY
@Immutable public static final EvictionAlgorithm LRU_MEMORY
An algorithm that considers the amount of bytes consumed by the Region before invoking itsEvictionAction
-
LIFO_ENTRY
@Deprecated @Immutable public static final EvictionAlgorithm LIFO_ENTRY
Deprecated.For internal use only.An algorithm that considers the number of Entries in the Region before invoking itsEvictionAction
-
LIFO_MEMORY
@Deprecated @Immutable public static final EvictionAlgorithm LIFO_MEMORY
Deprecated.For internal use only.An algorithm that considers the amount of bytes consumed by the Region before invoking itsEvictionAction
-
-
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
-
parseValue
public static EvictionAlgorithm parseValue(int v)
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
public static EvictionAlgorithm parseAction(java.lang.String s)
-
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 public boolean isLIFO()
Deprecated.For internal use only.- Returns:
- whether this object uses a last-in-first-out algorithm
-
-