Class MaybeCount.CountMaybeObserver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the resource, the operation should be idempotent.
      boolean isDisposed()
      Returns true if this resource has been disposed.
      void onComplete()
      Called once the deferred computation completes normally.
      void onError​(java.lang.Throwable e)
      Notifies the MaybeObserver that the Maybe has experienced an error condition.
      void onSubscribe​(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.
      void onSuccess​(java.lang.Object value)
      Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CountMaybeObserver

        CountMaybeObserver​(SingleObserver<? super java.lang.Long> downstream)
    • Method Detail

      • onSubscribe

        public void onSubscribe​(Disposable d)
        Description copied from interface: MaybeObserver
        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.
        Specified by:
        onSubscribe in interface MaybeObserver<java.lang.Object>
        Parameters:
        d - the Disposable instance whose Disposable.dispose() can be called anytime to cancel the connection
      • onComplete

        public void onComplete()
        Description copied from interface: MaybeObserver
        Called once the deferred computation completes normally.
        Specified by:
        onComplete in interface MaybeObserver<java.lang.Object>
      • isDisposed

        public boolean isDisposed()
        Description copied from interface: Disposable
        Returns true if this resource has been disposed.
        Specified by:
        isDisposed in interface Disposable
        Returns:
        true if this resource has been disposed
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Dispose the resource, the operation should be idempotent.
        Specified by:
        dispose in interface Disposable