Class FlowableTimer.TimerSubscriber

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Runnable, org.reactivestreams.Subscription
    Enclosing class:
    FlowableTimer

    static final class FlowableTimer.TimerSubscriber
    extends java.util.concurrent.atomic.AtomicReference<Disposable>
    implements org.reactivestreams.Subscription, java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) org.reactivestreams.Subscriber<? super java.lang.Long> downstream  
      (package private) boolean requested  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimerSubscriber​(org.reactivestreams.Subscriber<? super java.lang.Long> downstream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      void request​(long n)  
      void run()  
      void setResource​(Disposable d)  
      • 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

      • downstream

        final org.reactivestreams.Subscriber<? super java.lang.Long> downstream
      • requested

        volatile boolean requested
    • Constructor Detail

      • TimerSubscriber

        TimerSubscriber​(org.reactivestreams.Subscriber<? super java.lang.Long> downstream)
    • Method Detail

      • request

        public void request​(long n)
        Specified by:
        request in interface org.reactivestreams.Subscription
      • cancel

        public void cancel()
        Specified by:
        cancel in interface org.reactivestreams.Subscription
      • run

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

        public void setResource​(Disposable d)