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