Class MaybeDelay.DelayMaybeObserver<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      DelayMaybeObserver​(MaybeObserver<? super T> actual, long delay, java.util.concurrent.TimeUnit unit, Scheduler scheduler, boolean delayError)  
    • 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​(T value)
      Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.
      void run()  
      (package private) void schedule​(long delay)  
      • 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

      • delay

        final long delay
      • unit

        final java.util.concurrent.TimeUnit unit
      • delayError

        final boolean delayError
      • value

        T value
      • error

        java.lang.Throwable error
    • Constructor Detail

      • DelayMaybeObserver

        DelayMaybeObserver​(MaybeObserver<? super T> actual,
                           long delay,
                           java.util.concurrent.TimeUnit unit,
                           Scheduler scheduler,
                           boolean delayError)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Dispose the resource, the operation should be idempotent.
        Specified by:
        dispose in interface Disposable
      • 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
      • onComplete

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

        void schedule​(long delay)