Enum Class EvictionMode

java.lang.Object
java.lang.Enum<EvictionMode>
org.gridgain.internal.eviction.EvictionMode
All Implemented Interfaces:
Serializable, Comparable<EvictionMode>, Constable

public enum EvictionMode extends Enum<EvictionMode>
Eviction mode defines the strategy of the eviction process.
  • Enum Constant Details

    • DISABLED

      public static final EvictionMode DISABLED
      Eviction is disabled.
    • HISTORY_ONLY

      public static final EvictionMode HISTORY_ONLY
      Only history versions of rows are evicted.
    • RANDOM

      public static final EvictionMode RANDOM
      History versions of rows are evicted and than most recent versions of rows are evicted. Most recent versions of rows are chosen randomly for eviction.
  • Method Details

    • values

      public static EvictionMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EvictionMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null