Interface MaybeObserver<T>

    • Method Detail

      • onSubscribe

        void onSubscribe​(@NonNull
                         @NonNull Disposable d)
        Provides the MaybeObserver with the means of cancelling (disposing) the connection (channel) with the Maybe in both synchronous (from within onSubscribe(Disposable) itself) and asynchronous manner.
        Parameters:
        d - the Disposable instance whose Disposable.dispose() can be called anytime to cancel the connection
      • onError

        void onError​(@NonNull
                     @NonNull java.lang.Throwable e)
        Notifies the MaybeObserver that the Maybe has experienced an error condition.

        If the Maybe calls this method, it will not thereafter call onSuccess(T).

        Parameters:
        e - the exception encountered by the Maybe
      • onComplete

        void onComplete()
        Called once the deferred computation completes normally.