Package markets.alpaca.client.sse
package markets.alpaca.client.sse
Shared Server-Sent Events lifecycle, reconnect, callback, and subscription types.
Create API-specific streams through AlpacaClientFactory; generated OpenAPI SSE methods
are buffered REST methods and are not suitable for live streams. Subscription handles provide
awaitable opening, current connection metadata, cancellation, resume IDs, and structured
completion. Callbacks are serialized per subscription, while lifecycle completion, cancellation,
and timers never wait for user callbacks. Event callbacks backpressure response parsing, so a
blocked callback can delay detection of remote EOF and the following reconnect. A listener
runtime exception is logged and leaves a delivered event's cursor committed; callback-executor
rejection is terminal.
-
ClassDescriptionThe configured callback executor rejected a lifecycle or event callback.Normal terminal outcome for an SSE subscription.Immutable metadata for one accepted SSE connection.A complete SSE message could not be converted to its generated event model.One decoded Server-Sent Event and its protocol metadata.Base class for terminal SSE transport, protocol, and decoding failures.Terminal or retryable non-SSE HTTP response, captured before its body was closed.Receives ordered lifecycle and data callbacks from an SSE subscription.Immutable transport and resource limits for an SSE client.Builder for
AlpacaSseOptions.Malformed SSE framing, invalid response metadata, or a configured resource-limit violation.Retry and backoff settings for Server-Sent Events connections.Builder forAlpacaSseReconnectPolicy.Current lifecycle state of an SSE subscription.Thread-safe, cancellable handle for one logical SSE subscription.