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 an EvictionAction
    Since:
    GemFire 5.0
    See Also:
    EvictionAction, EvictionAttributesImpl, Serialized Form
    • Method Detail

      • getStringTable

        protected java.lang.String[] getStringTable()
        Overrides:
        getStringTable in class javax.print.attribute.EnumSyntax
      • getEnumValueTable

        protected javax.print.attribute.EnumSyntax[] getEnumValueTable()
        Overrides:
        getEnumValueTable in class javax.print.attribute.EnumSyntax
      • parseValue

        public static EvictionAlgorithm parseValue​(int v)
        Returns the eviction algorithm that corresponds to the given parameter. Returns null if 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
      • 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