Enum Class CacheEviction.Reason

java.lang.Object
java.lang.Enum<CacheEviction.Reason>
io.fluxcapacitor.javaclient.persisting.caching.CacheEviction.Reason
All Implemented Interfaces:
Serializable, Comparable<CacheEviction.Reason>, Constable
Enclosing class:
CacheEviction

public static enum CacheEviction.Reason extends Enum<CacheEviction.Reason>
Indicates the cause for a cache entry eviction.
  • Enum Constant Details

    • manual

      public static final CacheEviction.Reason manual
      The entry was manually evicted by application logic.
    • size

      public static final CacheEviction.Reason size
      The eviction occurred due to exceeding the configured cache size.
    • memoryPressure

      public static final CacheEviction.Reason memoryPressure
      The JVM experienced memory pressure and the cache purged entries to free up space.
    • expiry

      public static final CacheEviction.Reason expiry
      The entry expired due to time-based eviction policy.
  • Method Details

    • values

      public static CacheEviction.Reason[] 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 CacheEviction.Reason 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