public class WriteStreamObserverImpl<R,T> extends Object implements WriteStreamObserver<R>
| Constructor and Description |
|---|
WriteStreamObserverImpl(WriteStream<T> writeStream,
Function<R,T> mapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete() |
WriteStreamObserver<R> |
onComplete(Action handler)
Sets the handler to invoke if the
Observable that was subscribed to terminates successfully. |
WriteStreamObserver<R> |
onError(Consumer<? super Throwable> handler)
Sets the handler to invoke if the
Observable that was subscribed to terminates with an error. |
void |
onError(Throwable t) |
void |
onNext(R r) |
void |
onSubscribe(Disposable disposable) |
WriteStreamObserver<R> |
onWriteStreamError(Consumer<? super Throwable> handler)
Sets the handler to invoke if the adapted
WriteStream fails. |
public WriteStreamObserverImpl(WriteStream<T> writeStream, Function<R,T> mapping)
public void onSubscribe(Disposable disposable)
onSubscribe in interface Observer<R>public void onComplete()
onComplete in interface Observer<R>public WriteStreamObserver<R> onError(Consumer<? super Throwable> handler)
WriteStreamObserverObservable that was subscribed to terminates with an error.
The underlying WriteStream.end() method is not invoked in this case.
onError in interface WriteStreamObserver<R>public WriteStreamObserver<R> onComplete(Action handler)
WriteStreamObserverObservable that was subscribed to terminates successfully.
The underlying WriteStream.end() method is invoked before the given handler.
onComplete in interface WriteStreamObserver<R>public WriteStreamObserver<R> onWriteStreamError(Consumer<? super Throwable> handler)
WriteStreamObserverWriteStream fails.
The underlying WriteStream.end() method is not invoked in this case.
onWriteStreamError in interface WriteStreamObserver<R>Copyright © 2020. All rights reserved.