Package | Description |
---|---|
io.vertx.reactivex |
= Vert.x RxJava
:toc: left
== Vert.x API for RxJava2
https://github.com/ReactiveX/RxJava[RxJava] is a popular library for composing asynchronous and event based programs using
observable sequences for the Java VM.
|
Modifier and Type | Method and Description |
---|---|
WriteStreamSubscriber<R> |
WriteStreamSubscriber.onComplete(io.reactivex.functions.Action handler)
Sets the handler to invoke if the
Flowable that was subscribed to terminates successfully. |
WriteStreamSubscriber<R> |
WriteStreamSubscriber.onError(io.reactivex.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke if the
Flowable that was subscribed to terminates with an error. |
WriteStreamSubscriber<R> |
WriteStreamSubscriber.onWriteStreamError(io.reactivex.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke if the adapted
WriteStream fails. |
static <T> WriteStreamSubscriber<T> |
RxHelper.toSubscriber(io.vertx.core.streams.WriteStream<T> stream)
Adapts a Vert.x
WriteStream to an RxJava Subscriber . |
static <R,T> WriteStreamSubscriber<R> |
RxHelper.toSubscriber(io.vertx.core.streams.WriteStream<T> stream,
Function<R,T> mapping)
Like
RxHelper.toSubscriber(WriteStream) , except the provided mapping function is applied to each Flowable item. |
Copyright © 2019 Eclipse. All rights reserved.