Package io.vertx.rxjava3
Interface WriteStreamSubscriber<R>
-
- All Superinterfaces:
io.reactivex.rxjava3.core.FlowableSubscriber<R>
,org.reactivestreams.Subscriber<R>
public interface WriteStreamSubscriber<R> extends io.reactivex.rxjava3.core.FlowableSubscriber<R>
AWriteStream
toSubscriber
adapter.- Author:
- Thomas Segismont
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WriteStreamSubscriber<R>
onError(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke if theFlowable
that was subscribed to terminates with an error.WriteStreamSubscriber<R>
onWriteStreamEnd(io.reactivex.rxjava3.functions.Action handler)
Sets the handler to invoke when the adaptedWriteStream
ends successfully.WriteStreamSubscriber<R>
onWriteStreamEndError(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke when the adaptedWriteStream
ends with an error.WriteStreamSubscriber<R>
onWriteStreamError(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke if the adaptedWriteStream
fails.
-
-
-
Method Detail
-
onError
WriteStreamSubscriber<R> onError(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke if theFlowable
that was subscribed to terminates with an error.The underlying
WriteStream.end()
method is not invoked in this case.- Returns:
- a reference to this, so the API can be used fluently
-
onWriteStreamError
WriteStreamSubscriber<R> onWriteStreamError(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke if the adaptedWriteStream
fails.The underlying
WriteStream.end()
method is not invoked in this case.- Returns:
- a reference to this, so the API can be used fluently
-
onWriteStreamEnd
WriteStreamSubscriber<R> onWriteStreamEnd(io.reactivex.rxjava3.functions.Action handler)
Sets the handler to invoke when the adaptedWriteStream
ends successfully.- Returns:
- a reference to this, so the API can be used fluently
-
onWriteStreamEndError
WriteStreamSubscriber<R> onWriteStreamEndError(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke when the adaptedWriteStream
ends with an error.- Returns:
- a reference to this, so the API can be used fluently
-
-