Package com.launchdarkly.sdk.fdv2
Enum SourceSignal
- All Implemented Interfaces:
Serializable,Comparable<SourceSignal>
Represents the state of an FDv2 data source when emitting a status result.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe data source has been instructed to disconnect (e.g.The data source has encountered an interruption and will attempt to reconnect.The data source has been shut down and will not produce any further results.The data source has encountered a terminal error and will not produce any further results. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceSignalReturns the enum constant of this type with the specified name.static SourceSignal[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INTERRUPTED
The data source has encountered an interruption and will attempt to reconnect. This is not intended to be used with an initializer; useTERMINAL_ERRORinstead. When used with an initializer it will still be treated as a terminal state. -
SHUTDOWN
The data source has been shut down and will not produce any further results. -
TERMINAL_ERROR
The data source has encountered a terminal error and will not produce any further results. -
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
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
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 nameNullPointerException- if the argument is null
-