public interface SseClient
Modifier and Type | Method and Description |
---|---|
<I> Publisher<Event<ByteBuffer<?>>> |
eventStream(HttpRequest<I> request)
Perform an HTTP request and receive data as a stream of SSE
Event objects as they become available without blocking. |
<I,B> Publisher<Event<B>> |
eventStream(HttpRequest<I> request,
Argument<B> eventType)
Perform an HTTP request and receive data as a stream of SSE
Event objects as they become available without blocking. |
default <I,B> Publisher<Event<B>> |
eventStream(HttpRequest<I> request,
Class<B> eventType)
Perform an HTTP request and receive data as a stream of SSE
Event objects as they become available without blocking. |
default <B> Publisher<Event<B>> |
eventStream(String uri,
Argument<B> eventType)
Perform an HTTP GET request and receive data as a stream of SSE
Event objects as they become available without blocking. |
default <B> Publisher<Event<B>> |
eventStream(String uri,
Class<B> eventType)
Perform an HTTP GET request and receive data as a stream of SSE
Event objects as they become available without blocking. |
<I> Publisher<Event<ByteBuffer<?>>> eventStream(HttpRequest<I> request)
Perform an HTTP request and receive data as a stream of SSE Event
objects as they become available without blocking.
The downstream Subscriber
can regulate demand via the subscription
I
- The request body typerequest
- The HttpRequest
to executePublisher
that emits an Event
with the data represented as a ByteBuffer
<I,B> Publisher<Event<B>> eventStream(HttpRequest<I> request, Argument<B> eventType)
Perform an HTTP request and receive data as a stream of SSE Event
objects as they become available without blocking.
The downstream Subscriber
can regulate demand via the subscription
I
- The request body typeB
- The event body typerequest
- The HttpRequest
to executeeventType
- The event data typePublisher
that emits an Event
with the data represented by the eventType argumentdefault <I,B> Publisher<Event<B>> eventStream(HttpRequest<I> request, Class<B> eventType)
Perform an HTTP request and receive data as a stream of SSE Event
objects as they become available without blocking.
The downstream Subscriber
can regulate demand via the subscription
I
- The request body typeB
- The event body typerequest
- The HttpRequest
to executeeventType
- The event data typePublisher
that emits an Event
with the data represented by the eventType argumentdefault <B> Publisher<Event<B>> eventStream(String uri, Class<B> eventType)
Perform an HTTP GET request and receive data as a stream of SSE Event
objects as they become available without blocking.
The downstream Subscriber
can regulate demand via the subscription