Interface WriteStreamSubscriber<R>
- All Superinterfaces:
FlowableSubscriber<R>, org.reactivestreams.Subscriber<R>
A
WriteStream to Subscriber adapter.- Author:
- Thomas Segismont
-
Method Summary
Modifier and TypeMethodDescriptionSets the handler to invoke if theFlowablethat was subscribed to terminates with an error.onWriteStreamEnd(Action handler) Sets the handler to invoke when the adaptedWriteStreamends successfully.onWriteStreamEndError(Consumer<? super Throwable> handler) Sets the handler to invoke when the adaptedWriteStreamends with an error.onWriteStreamError(Consumer<? super Throwable> handler) Sets the handler to invoke if the adaptedWriteStreamfails.Methods inherited from interface FlowableSubscriber
onSubscribeMethods inherited from interface org.reactivestreams.Subscriber
onComplete, onError, onNext
-
Method Details
-
onError
Sets the handler to invoke if theFlowablethat 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
Sets the handler to invoke if the adaptedWriteStreamfails.The underlying
WriteStream.end()method is not invoked in this case.- Returns:
- a reference to this, so the API can be used fluently
-
onWriteStreamEnd
Sets the handler to invoke when the adaptedWriteStreamends successfully.- Returns:
- a reference to this, so the API can be used fluently
-
onWriteStreamEndError
Sets the handler to invoke when the adaptedWriteStreamends with an error.- Returns:
- a reference to this, so the API can be used fluently
-