Interface WriteStreamObserver<R>

  • All Superinterfaces:
    io.reactivex.rxjava3.core.Observer<R>

    public interface WriteStreamObserver<R>
    extends io.reactivex.rxjava3.core.Observer<R>
    A WriteStream to Observer adapter.
    Author:
    Thomas Segismont
    • Method Detail

      • onError

        WriteStreamObserver<R> onError​(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
        Sets the handler to invoke if the Observable that 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

        WriteStreamObserver<R> onWriteStreamError​(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
        Sets the handler to invoke if the adapted WriteStream fails.

        The underlying WriteStream.end() method is not invoked in this case.

        Returns:
        a reference to this, so the API can be used fluently
      • onWriteStreamEnd

        WriteStreamObserver<R> onWriteStreamEnd​(io.reactivex.rxjava3.functions.Action handler)
        Sets the handler to invoke when the adapted WriteStream ends successfully.
        Returns:
        a reference to this, so the API can be used fluently
      • onWriteStreamEndError

        WriteStreamObserver<R> onWriteStreamEndError​(io.reactivex.rxjava3.functions.Consumer<? super Throwable> handler)
        Sets the handler to invoke when the adapted WriteStream ends with an error.
        Returns:
        a reference to this, so the API can be used fluently