Class AbstractDisposableAutoRelease

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the resource, the operation should be idempotent.
      boolean hasCustomOnError()
      Returns true or false if a custom onError consumer has been provided.
      boolean isDisposed()
      Returns true if this resource has been disposed.
      void onComplete()  
      void onError​(java.lang.Throwable t)  
      void onSubscribe​(Disposable d)  
      (package private) void removeSelf()  
      • 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
    • Field Detail

      • onError

        final Consumer<? super java.lang.Throwable> onError
      • onComplete

        final Action onComplete
    • Constructor Detail

    • Method Detail

      • onError

        public final void onError​(java.lang.Throwable t)
      • onComplete

        public final void onComplete()
      • dispose

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

        final void removeSelf()
      • isDisposed

        public final 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
      • onSubscribe

        public final void onSubscribe​(Disposable d)
      • hasCustomOnError

        public final boolean hasCustomOnError()
        Description copied from interface: LambdaConsumerIntrospection
        Returns true or false if a custom onError consumer has been provided.
        Specified by:
        hasCustomOnError in interface LambdaConsumerIntrospection
        Returns:
        true if a custom onError consumer implementation was supplied. Returns false if the implementation is missing an error consumer and thus using a throwing default implementation.