Class FlowableOperatorConditionalConcat.SubscriberImpl

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

public class FlowableOperatorConditionalConcat.SubscriberImpl extends Object implements io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscription
This subscriber first consumes the initial upstream and caches all seen items. Afterwards, a new flowable is created from those items and the subscriber attaches itself to that new flowable.
Author:
raven
  • Field Details

    • downstream

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

      protected org.reactivestreams.Subscription upstream
    • isInitialUpstreamComplete

      protected boolean isInitialUpstreamComplete
    • accumulator

      protected Accumulator<T,?,C> accumulator
    • downstreamDemand

      protected AtomicLong downstreamDemand
  • 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 item)
      Specified by:
      onNext in interface org.reactivestreams.Subscriber<T>
    • onComplete

      public void onComplete()
      Called when the upstream completes
      Specified by:
      onComplete in interface org.reactivestreams.Subscriber<T>
    • onError

      public void onError(Throwable t)
      Specified by:
      onError 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