public class WriteStreamSubscriberImpl<R,T> extends Object implements WriteStreamSubscriber<R>
| Constructor and Description |
|---|
WriteStreamSubscriberImpl(WriteStream<T> writeStream,
Function<R,T> mapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete() |
WriteStreamSubscriber<R> |
onComplete(Action handler)
Sets the handler to invoke if the
Flowable that was subscribed to terminates successfully. |
WriteStreamSubscriber<R> |
onError(Consumer<? super Throwable> handler)
Sets the handler to invoke if the
Flowable that was subscribed to terminates with an error. |
void |
onError(Throwable t) |
void |
onNext(R r) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
WriteStreamSubscriber<R> |
onWriteStreamError(Consumer<? super Throwable> handler)
Sets the handler to invoke if the adapted
WriteStream fails. |
public WriteStreamSubscriberImpl(WriteStream<T> writeStream, Function<R,T> mapping)
public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface FlowableSubscriber<R>onSubscribe in interface org.reactivestreams.Subscriber<R>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<R>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<R>public WriteStreamSubscriber<R> onError(Consumer<? super Throwable> handler)
WriteStreamSubscriberFlowable that was subscribed to terminates with an error.
The underlying WriteStream.end() method is not invoked in this case.
onError in interface WriteStreamSubscriber<R>public WriteStreamSubscriber<R> onComplete(Action handler)
WriteStreamSubscriberFlowable that was subscribed to terminates successfully.
The underlying WriteStream.end() method is invoked before the given handler.
onComplete in interface WriteStreamSubscriber<R>public WriteStreamSubscriber<R> onWriteStreamError(Consumer<? super Throwable> handler)
WriteStreamSubscriberWriteStream fails.
The underlying WriteStream.end() method is not invoked in this case.
onWriteStreamError in interface WriteStreamSubscriber<R>Copyright © 2020. All rights reserved.