Package io.micronaut.reactor.http.client
Interface ReactorSseClient
- All Superinterfaces:
io.micronaut.http.client.sse.SseClient
- All Known Implementing Classes:
BridgedReactorSseClient
public interface ReactorSseClient
extends io.micronaut.http.client.sse.SseClient
Reactor variation of the
SseClient
interface.- Since:
- 1.0.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ReactorSseClient
Create a newReactorSseClient
.static @NonNull ReactorSseClient
Create a newReactorSseClient
with the specified configuration.<I> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<io.micronaut.core.io.buffer.ByteBuffer<?>>>
eventStream
(@NonNull io.micronaut.http.HttpRequest<I> request) <I,
B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>> eventStream
(@NonNull io.micronaut.http.HttpRequest<I> request, @NonNull io.micronaut.core.type.Argument<B> eventType) <I,
B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>> eventStream
(@NonNull io.micronaut.http.HttpRequest<I> request, @NonNull Class<B> eventType) <B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>>
eventStream
(@NonNull String uri, @NonNull io.micronaut.core.type.Argument<B> eventType) <B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>>
eventStream
(@NonNull String uri, @NonNull Class<B> eventType) Methods inherited from interface io.micronaut.http.client.sse.SseClient
eventStream
-
Method Details
-
eventStream
<I> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<io.micronaut.core.io.buffer.ByteBuffer<?>>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request) - Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
<I,B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request, @NonNull @NonNull io.micronaut.core.type.Argument<B> eventType) - Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
<I,B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request, @NonNull @NonNull Class<B> eventType) - Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
<B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull String uri, @NonNull @NonNull Class<B> eventType) - Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
<B> reactor.core.publisher.Flux<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull String uri, @NonNull @NonNull io.micronaut.core.type.Argument<B> eventType) - Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
create
Create a newReactorSseClient
. Note that this method should only be used outside of the context of a Micronaut application. The returnedReactorSseClient
is not subject to dependency injection. The creator is responsible for closing the client to avoid leaking connections. Within a Micronaut application useInject
to inject a client instead.- Parameters:
url
- The base URL- Returns:
- The client
- Since:
- 2.1.0
-
create
@NonNull static @NonNull ReactorSseClient create(@Nullable @Nullable URL url, @NonNull @NonNull io.micronaut.http.client.HttpClientConfiguration configuration) Create a newReactorSseClient
with the specified configuration. Note that this method should only be used outside of the context of an application. Within Micronaut useInject
to inject a client instead- Parameters:
url
- The base URLconfiguration
- the client configuration- Returns:
- The client
- Since:
- 2.1.0
-