Enum Class ConnectionErrorHandler.Action
java.lang.Object
java.lang.Enum<ConnectionErrorHandler.Action>
com.launchdarkly.eventsource.background.ConnectionErrorHandler.Action
- All Implemented Interfaces:
Serializable,Comparable<ConnectionErrorHandler.Action>,Constable
- Enclosing interface:
- ConnectionErrorHandler
Return values of
ConnectionErrorHandler.onConnectionError(Throwable) indicating what
action the BackgroundEventSource should take after an error.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the error should be logged normally and dispatched to theBackgroundEventHandler.Specifies that the connection should be immediately shut down and not retried. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ConnectionErrorHandler.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROCEED
Specifies that the error should be logged normally and dispatched to theBackgroundEventHandler. Connection retrying will proceed normally if appropriate. -
SHUTDOWN
Specifies that the connection should be immediately shut down and not retried. The error will not be dispatched to theBackgroundEventHandler.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-