public interface WriteStreamSubscriber<R>
extends io.reactivex.FlowableSubscriber<R>
WriteStream
to Subscriber
adapter.Modifier and Type | Method and Description |
---|---|
WriteStreamSubscriber<R> |
onComplete(io.reactivex.functions.Action handler)
Deprecated.
because the
handler may be called while there are outstanding writes in the underlying WriteStream .
Use onWriteStreamEnd(Action) instead. |
WriteStreamSubscriber<R> |
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> |
onWriteStreamEnd(io.reactivex.functions.Action handler)
Sets the handler to invoke when the adapted
WriteStream ends successfully. |
WriteStreamSubscriber<R> |
onWriteStreamEndError(io.reactivex.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke when the adapted
WriteStream ends with an error. |
WriteStreamSubscriber<R> |
onWriteStreamError(io.reactivex.functions.Consumer<? super Throwable> handler)
Sets the handler to invoke if the adapted
WriteStream fails. |
WriteStreamSubscriber<R> onError(io.reactivex.functions.Consumer<? super Throwable> handler)
Flowable
that was subscribed to terminates with an error.
The underlying WriteStream.end()
method is not invoked in this case.
@Deprecated WriteStreamSubscriber<R> onComplete(io.reactivex.functions.Action handler)
handler
may be called while there are outstanding writes in the underlying WriteStream
.
Use onWriteStreamEnd(Action)
instead.Flowable
that was subscribed to terminates successfully.
The underlying WriteStream.end()
method is invoked before the given handler
.
WriteStreamSubscriber<R> onWriteStreamError(io.reactivex.functions.Consumer<? super Throwable> handler)
WriteStream
fails.
The underlying WriteStream.end()
method is not invoked in this case.
WriteStreamSubscriber<R> onWriteStreamEnd(io.reactivex.functions.Action handler)
WriteStream
ends successfully.WriteStreamSubscriber<R> onWriteStreamEndError(io.reactivex.functions.Consumer<? super Throwable> handler)
WriteStream
ends with an error.Copyright © 2021 Eclipse. All rights reserved.