Class FlatteningSubscriber<U>

All Implemented Interfaces:
org.reactivestreams.Subscriber<Iterable<U>>

@SdkProtectedApi public class FlatteningSubscriber<U> extends BaseSubscriberAdapter<Iterable<U>,U>
  • Constructor Details

    • FlatteningSubscriber

      public FlatteningSubscriber(org.reactivestreams.Subscriber<? super U> subscriber)
  • Method Details

    • fulfillDownstreamDemand

      protected void fulfillDownstreamDemand()
      Description copied from class: BaseSubscriberAdapter
      This method is called when demand from the downstream subscriber needs to be fulfilled. Called in a loop until downstreamDemand is no longer needed. Implementations are responsible for decrementing the downstreamDemand accordingly as demand gets fulfilled.
      Specified by:
      fulfillDownstreamDemand in class BaseSubscriberAdapter<Iterable<U>,U>
    • onNext

      public void onNext(Iterable<U> item)
      Specified by:
      onNext in interface org.reactivestreams.Subscriber<U>
      Overrides:
      onNext in class BaseSubscriberAdapter<Iterable<U>,U>