Enum Class EvictionPolicyType

java.lang.Object
java.lang.Enum<EvictionPolicyType>
org.springframework.data.gemfire.eviction.EvictionPolicyType
All Implemented Interfaces:
Serializable, Comparable<EvictionPolicyType>, Constable

public enum EvictionPolicyType extends Enum<EvictionPolicyType>
The EvictionPolicyType enum is an enumeration of all GemFire Eviction policies, where the Eviction 'policy' is a combination of the Eviction algorithm mixed with the monitored resource (e.g. such as JVM HEAP memory).
Since:
1.0.0
Author:
Costin Leau, John Blum
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static EvictionPolicyType[] 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 EvictionPolicyType 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
    • getEvictionAlgorithm

      public static EvictionAlgorithm getEvictionAlgorithm(EvictionPolicyType evictionPolicyType)
      A null-safe operation to extract the GemFire EvictionAlgorithm from the given EvictionPolicyType.
      Parameters:
      evictionPolicyType - the EvictionPolicyType from which to extract the GemFire EvictionAlgorithm.
      Returns:
      the GemFire EvictionAlgorithm for the corresponding EvictionPolicyType or null if evictionType is null.
      See Also:
    • valueOf

      public static EvictionPolicyType valueOf(EvictionAlgorithm evictionAlgorithm)
      Returns an EvictionPolicyType enumerated value matching the given GemFire EvictionAlgorithm.
      Parameters:
      evictionAlgorithm - the GemFire EvictionAlgorithm used to lookup and match the EvictionPolicyType.
      Returns:
      an EvictionPolicyType matching the specified GemFire EvictionAlgorithm or null if no match was found.
      See Also:
    • valueOfIgnoreCase

      public static EvictionPolicyType valueOfIgnoreCase(String name)
      Returns an EvictionPolicyType enumerated value given the case-insensitive, named eviction policy.
      Parameters:
      name - a String indicating the name of the eviction policy used to match EvictionPolicyType.
      Returns:
      an EvictionPolicyType matching the given the case-insensitive, named eviction policy.
      See Also:
    • getEvictionAlgorithm

      public EvictionAlgorithm getEvictionAlgorithm()
      Gets the GemFire EvictionAlgorithm represented by this enumerated value.
      Returns:
      the GemFire EvictionAlgorithm represented by this enum.
      See Also: