Package com.launchdarkly.eventsource
package com.launchdarkly.eventsource
A client implementation for the
Server-Sent
Events (SSE) protocol.
The entry point for using this package is EventSource.
-
ClassDescriptionDescribes a comment line received from the stream.An abstraction of how
EventSourceshould obtain an input stream.An object provided byConnectStrategythat is retained by a singleEventSourceinstance to perform all connection attempts by that instance.The return type ofConnectStrategy.Client.connect(String).Default implementation of the retry delay strategy, providing exponential backoff and jitter.An abstraction of how to determine whether a stream failure should be thrown to the caller as an exception, or treated as an event.Describes the possible actions EventSource could take after an error.The return type ofErrorStrategy.apply(StreamException).The SSE client.Builder for configuringEventSource.Describes a failure in the stream.Allows configuration of HTTP request behavior forEventSource.An interface for use withHttpConnectStrategy.clientBuilderActions(ClientConfigurer).An interface for use withHttpConnectStrategy.requestTransformer(RequestTransformer).Information about a message received from the stream.AnSSLSocketFactorythat tries to ensure modern TLS versions are used.Enum values that can be returned byEventSource.getState().This interface provides access to HTTP response headers in a way that is independent of any specific HTTP client implementation.Represents a single HTTP header as a name-value pair.RetryDelayStrategy is an abstraction of how EventSource should determine the delay between retry attempts when a stream fails.The return type ofRetryDelayStrategy.apply(long).Represents the beginning of a stream.An exception indicating that the stream stopped because you explicitly stopped it.An exception indicating that the stream stopped because the server closed the connection.A marker interface for all types of stream information that can be returned byEventSource.readAnyEvent()andEventSource.messages().Base class for all exceptions thrown byEventSource.An exception indicating that the remote server returned an HTTP error.An exception indicating that a connection could not be made, or that an existing connection failed with a network error.