Enum Class RefreshMode

java.lang.Object
java.lang.Enum<RefreshMode>
growthbook.sdk.java.repository.RefreshMode
All Implemented Interfaces:
Serializable, Comparable<RefreshMode>, Constable

public enum RefreshMode extends Enum<RefreshMode>
Controls whether a feature refresh may use cache freshness checks.
  • Enum Constant Details

    • DEFAULT

      public static final RefreshMode DEFAULT
      Honor the configured background fetch interval.
    • FORCE

      public static final RefreshMode FORCE
      Always perform a network request and bypass cache freshness checks.
  • Method Details

    • values

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