Enum SourceSignal

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

public enum SourceSignal extends Enum<SourceSignal>
Represents the state of an FDv2 data source when emitting a status result.
  • Enum Constant Details

    • INTERRUPTED

      public static final SourceSignal INTERRUPTED
      The data source has encountered an interruption and will attempt to reconnect. This is not intended to be used with an initializer; use TERMINAL_ERROR instead. When used with an initializer it will still be treated as a terminal state.
    • SHUTDOWN

      public static final SourceSignal SHUTDOWN
      The data source has been shut down and will not produce any further results.
    • TERMINAL_ERROR

      public static final SourceSignal TERMINAL_ERROR
      The data source has encountered a terminal error and will not produce any further results.
    • GOODBYE

      public static final SourceSignal GOODBYE
      The data source has been instructed to disconnect (e.g. the server sent a goodbye message) and will not produce any further results.
  • Method Details

    • values

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