Class BridgedRx3SseClient
java.lang.Object
io.micronaut.rxjava3.http.client.sse.BridgedRx3SseClient
- All Implemented Interfaces:
io.micronaut.http.client.sse.SseClient
,Rx3SseClient
,AutoCloseable
RxJava 2 bridge for the Server side events HTTP client.
- Since:
- 3.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionBridgedRx3SseClient
(io.micronaut.http.client.sse.SseClient sseClient) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<I> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<io.micronaut.core.io.buffer.ByteBuffer<?>>>
eventStream
(@NonNull io.micronaut.http.HttpRequest<I> request) <I,
B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream
(@NonNull io.micronaut.http.HttpRequest<I> request, @NonNull io.micronaut.core.type.Argument<B> eventType) <I,
B> org.reactivestreams.Publisher<io.micronaut.http.sse.Event<B>> eventStream
(@NonNull io.micronaut.http.HttpRequest<I> request, @NonNull io.micronaut.core.type.Argument<B> eventType, @NonNull io.micronaut.core.type.Argument<?> errorType) <I,
B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream
(@NonNull io.micronaut.http.HttpRequest<I> request, @NonNull Class<B> eventType) <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>>
eventStream
(@NonNull String uri, @NonNull io.micronaut.core.type.Argument<B> eventType) <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>>
eventStream
(@NonNull String uri, @NonNull Class<B> eventType)
-
Constructor Details
-
BridgedRx3SseClient
public BridgedRx3SseClient(io.micronaut.http.client.sse.SseClient sseClient) Default constructor.- Parameters:
sseClient
- Server Sent Events HTTP Client
-
-
Method Details
-
eventStream
public <I> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<io.micronaut.core.io.buffer.ByteBuffer<?>>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request) - Specified by:
eventStream
in interfaceRx3SseClient
- Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
public <I,B> io.reactivex.rxjava3.core.Flowable<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 interfaceRx3SseClient
- Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
public <I,B> org.reactivestreams.Publisher<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request, @NonNull @NonNull io.micronaut.core.type.Argument<B> eventType, @NonNull @NonNull io.micronaut.core.type.Argument<?> errorType) - Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
public <I,B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request, @NonNull @NonNull Class<B> eventType) - Specified by:
eventStream
in interfaceRx3SseClient
- Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
public <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull String uri, @NonNull @NonNull Class<B> eventType) - Specified by:
eventStream
in interfaceRx3SseClient
- Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
eventStream
public <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull String uri, @NonNull @NonNull io.micronaut.core.type.Argument<B> eventType) - Specified by:
eventStream
in interfaceRx3SseClient
- Specified by:
eventStream
in interfaceio.micronaut.http.client.sse.SseClient
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-