Package io.vertx.reactivex
Interface WriteStreamSubscriber<R>
- 
- All Superinterfaces:
- FlowableSubscriber<R>,- org.reactivestreams.Subscriber<R>
 
 public interface WriteStreamSubscriber<R> extends FlowableSubscriber<R> AWriteStreamtoSubscriberadapter.- Author:
- Thomas Segismont
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description WriteStreamSubscriber<R>onError(Consumer<? super Throwable> handler)Sets the handler to invoke if theFlowablethat was subscribed to terminates with an error.WriteStreamSubscriber<R>onWriteStreamEnd(Action handler)Sets the handler to invoke when the adaptedWriteStreamends successfully.WriteStreamSubscriber<R>onWriteStreamEndError(Consumer<? super Throwable> handler)Sets the handler to invoke when the adaptedWriteStreamends with an error.WriteStreamSubscriber<R>onWriteStreamError(Consumer<? super Throwable> handler)Sets the handler to invoke if the adaptedWriteStreamfails.- 
Methods inherited from interface io.reactivex.FlowableSubscriberonSubscribe
 
- 
 
- 
- 
- 
Method Detail- 
onErrorWriteStreamSubscriber<R> onError(Consumer<? super Throwable> handler) 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
 
 - 
onWriteStreamErrorWriteStreamSubscriber<R> onWriteStreamError(Consumer<? super Throwable> handler) 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
 
 - 
onWriteStreamEndWriteStreamSubscriber<R> onWriteStreamEnd(Action handler) Sets the handler to invoke when the adaptedWriteStreamends successfully.- Returns:
- a reference to this, so the API can be used fluently
 
 - 
onWriteStreamEndErrorWriteStreamSubscriber<R> onWriteStreamEndError(Consumer<? super Throwable> handler) Sets the handler to invoke when the adaptedWriteStreamends with an error.- Returns:
- a reference to this, so the API can be used fluently
 
 
- 
 
-