Package com.launchdarkly.eventsource
Enum Class ReadyState
- All Implemented Interfaces:
Serializable,Comparable<ReadyState>,Constable
Enum values that can be returned by
EventSource.getState().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe connection has been closed or has failed, and the EventSource will attempt to reconnect.The EventSource is attempting to make a connection.The connection is active and the EventSource is listening for events.The EventSource'sEventSource.start()method has not yet been called.The connection has been permanently closed and will not reconnect. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReadyStateReturns the enum constant of this class with the specified name.static ReadyState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RAW
The EventSource'sEventSource.start()method has not yet been called. -
CONNECTING
The EventSource is attempting to make a connection. -
OPEN
The connection is active and the EventSource is listening for events. -
CLOSED
The connection has been closed or has failed, and the EventSource will attempt to reconnect. -
SHUTDOWN
The connection has been permanently closed and will not reconnect.
-
-
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
-