Class OperatorLocalOrder.SubscriberImpl

java.lang.Object
org.aksw.commons.rx.op.OperatorLocalOrder.SubscriberImpl
All Implemented Interfaces:
io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
Enclosing class:
OperatorLocalOrder<T,S>

public class OperatorLocalOrder.SubscriberImpl extends Object implements io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscription
  • Field Details

    • downstream

      protected org.reactivestreams.Subscriber<? super T> downstream
    • upstream

      protected org.reactivestreams.Subscription upstream
    • isUpstreamComplete

      protected volatile boolean isUpstreamComplete
    • expectedSeqId

      protected S expectedSeqId
    • seqIdToValue

      protected ConcurrentNavigableMap<S,T> seqIdToValue
    • pending

      protected AtomicLong pending
  • Constructor Details

    • SubscriberImpl

      public SubscriberImpl(org.reactivestreams.Subscriber<? super T> downstream)
  • Method Details

    • onSubscribe

      public void onSubscribe(org.reactivestreams.Subscription s)
      Specified by:
      onSubscribe in interface io.reactivex.rxjava3.core.FlowableSubscriber<T>
      Specified by:
      onSubscribe in interface org.reactivestreams.Subscriber<T>
    • onNext

      public void onNext(T value)
      Specified by:
      onNext in interface org.reactivestreams.Subscriber<T>
    • drain

      protected void drain()
    • drain

      protected void drain(boolean isCalledFromOnNext, Runnable action)
    • postDrainRequests

      public void postDrainRequests(boolean isCalledFromOnNext)
    • drainTo

      protected void drainTo(Collection<T> buffer)
    • onError

      public void onError(Throwable t)
      Specified by:
      onError in interface org.reactivestreams.Subscriber<T>
    • onComplete

      public void onComplete()
      Specified by:
      onComplete in interface org.reactivestreams.Subscriber<T>
    • 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