Package | Description |
---|---|
io.vertx.rx.java |
Modifier and Type | Method and Description |
---|---|
abstract WriteStreamSubscriber<R> |
WriteStreamSubscriber.onComplete(rx.functions.Action0 handler)
Sets the handler to invoke if the
Observable that was subscribed to terminates successfully. |
abstract WriteStreamSubscriber<R> |
WriteStreamSubscriber.onError(rx.functions.Action1<Throwable> handler)
Sets the handler to invoke if the
Observable that was subscribed to terminates with an error. |
abstract WriteStreamSubscriber<R> |
WriteStreamSubscriber.onWriteStreamError(rx.functions.Action1<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 Observable item. |
Copyright © 2020 Eclipse. All rights reserved.