Class ReplayProcessor.ReplaySubscription<T>

  • All Implemented Interfaces:
    java.io.Serializable, org.reactivestreams.Subscription
    Enclosing class:
    ReplayProcessor<T>

    static final class ReplayProcessor.ReplaySubscription<@NonNull T>
    extends java.util.concurrent.atomic.AtomicInteger
    implements org.reactivestreams.Subscription
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean cancelled  
      (package private) org.reactivestreams.Subscriber<? super T> downstream  
      (package private) long emitted  
      (package private) java.lang.Object index  
      (package private) java.util.concurrent.atomic.AtomicLong requested  
      private static long serialVersionUID  
      (package private) ReplayProcessor<T> state  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      void request​(long n)  
      • Methods inherited from class java.util.concurrent.atomic.AtomicInteger

        accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • 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 T> downstream
      • index

        java.lang.Object index
      • requested

        final java.util.concurrent.atomic.AtomicLong requested
      • cancelled

        volatile boolean cancelled
      • emitted

        long emitted
    • 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