Class CompletableUsing.UsingObserver<R>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the resource, the operation should be idempotent.
      (package private) void disposeResource()  
      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)
      Called once if the deferred computation 'throws' an exception.
      void onSubscribe​(Disposable d)
      Called once by the Completable to set a Disposable on this instance which then can be used to cancel the subscription at any time.
      • Methods inherited from class java.util.concurrent.atomic.AtomicReference

        accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • dispose

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

        void disposeResource()
      • 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
      • onError

        public void onError​(java.lang.Throwable e)
        Description copied from interface: CompletableObserver
        Called once if the deferred computation 'throws' an exception.
        Specified by:
        onError in interface CompletableObserver
        Parameters:
        e - the exception, not null.