Class ObservableIntervalRange.IntervalRangeObserver

  • All Implemented Interfaces:
    Disposable, java.io.Serializable, java.lang.Runnable
    Enclosing class:
    ObservableIntervalRange

    static final class ObservableIntervalRange.IntervalRangeObserver
    extends java.util.concurrent.atomic.AtomicReference<Disposable>
    implements Disposable, java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long count  
      (package private) Observer<? super java.lang.Long> downstream  
      (package private) long end  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      IntervalRangeObserver​(Observer<? super java.lang.Long> actual, long start, long end)  
    • 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 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 Observer<? super java.lang.Long> downstream
      • end

        final long end
      • count

        long count
    • Constructor Detail

      • IntervalRangeObserver

        IntervalRangeObserver​(Observer<? super java.lang.Long> actual,
                              long start,
                              long end)
    • 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
      • 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
      • run

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

        public void setResource​(Disposable d)