Enum SourceResultType

java.lang.Object
java.lang.Enum<SourceResultType>
com.launchdarkly.sdk.fdv2.SourceResultType
All Implemented Interfaces:
Serializable, Comparable<SourceResultType>

public enum SourceResultType extends Enum<SourceResultType>
Indicates whether an FDv2 source result carries a change set or a status update.
  • Enum Constant Details

    • CHANGE_SET

      public static final SourceResultType CHANGE_SET
      The source has emitted a change set. This implies that the source is in a valid state.
    • STATUS

      public static final SourceResultType STATUS
      The source is emitting a status update, indicating a transition from being valid to being in some kind of error or non-operational state. The source will emit a CHANGE_SET if it becomes valid again.
  • Method Details

    • values

      public static SourceResultType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SourceResultType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null