Package com.launchdarkly.eventsource.background
A wrapper for using EventSource with a push model and a worker thread.
-
Interface Summary Interface Description BackgroundEventHandler Interface for an object that will receive SSE events fromBackgroundEventSource.ConnectionErrorHandler Interface for an object that will be notified whenBackgroundEventSourceencounters a network error or receives an error response. -
Class Summary Class Description BackgroundEventSource A wrapper forEventSourcethat reads the stream on a worker thread, pushing events to a handler that the caller provides.BackgroundEventSource.Builder Builder for configuringBackgroundEventSource. -
Enum Summary Enum Description ConnectionErrorHandler.Action Return values ofConnectionErrorHandler.onConnectionError(Throwable)indicating what action theBackgroundEventSourceshould take after an error.