Enum Class TimeToLiveResetPolicy

java.lang.Object
java.lang.Enum<TimeToLiveResetPolicy>
org.apache.geode.cache.TimeToLiveResetPolicy
All Implemented Interfaces:
Serializable, Comparable<TimeToLiveResetPolicy>, Constable

public enum TimeToLiveResetPolicy extends Enum<TimeToLiveResetPolicy>
An enum that specifies whether TTL-based expiration should be relative to the creation time or the last modified time of a given entry.
See Also:
  • Enum Constant Details

    • LAST_MODIFIED

      public static final TimeToLiveResetPolicy LAST_MODIFIED
      Expiration is relative to the last time that the entry was accessed or modified. This is the default if not explicitly set in various ExpirationAttributes constructors.
    • NEVER

      public static final TimeToLiveResetPolicy NEVER
      Expiration is relative to the creation time of the entry. This ensures that the entry is expired with a fixed timeout, regardless of whether it is accessed or modified.
  • Method Details

    • values

      public static TimeToLiveResetPolicy[] 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 TimeToLiveResetPolicy 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
    • toXmlString

      public String toXmlString()
    • fromXmlString

      public static TimeToLiveResetPolicy fromXmlString(String xmlValue)