Enum Class CacheState

java.lang.Object
java.lang.Enum<CacheState>
growthbook.sdk.java.diagnostics.model.enums.CacheState
All Implemented Interfaces:
Serializable, Comparable<CacheState>, Constable

public enum CacheState extends Enum<CacheState>
Derived feature cache state.
  • Enum Constant Details

    • DISABLED

      public static final CacheState DISABLED
      Cache persistence is disabled by configuration.
    • NOT_INITIALIZED

      public static final CacheState NOT_INITIALIZED
      Cache could be enabled, but the feature repository has not been initialized yet.
    • AVAILABLE

      public static final CacheState AVAILABLE
      Cache is enabled and exposes a last-updated timestamp.
    • UNKNOWN

      public static final CacheState UNKNOWN
      Cache is enabled, but its last-updated timestamp is unavailable.
  • Method Details

    • values

      public static CacheState[] 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 CacheState 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