Class FlatteningSubscriber<U>
- java.lang.Object
-
- software.amazon.awssdk.utils.async.DelegatingSubscriber<T,U>
-
- software.amazon.awssdk.utils.async.BaseSubscriberAdapter<Iterable<U>,U>
-
- software.amazon.awssdk.utils.async.FlatteningSubscriber<U>
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<Iterable<U>>
public class FlatteningSubscriber<U> extends BaseSubscriberAdapter<Iterable<U>,U>
-
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.utils.async.BaseSubscriberAdapter
downstreamDemand, handlingStateUpdate, onCompleteCalledByUpstream, onErrorFromUpstream, terminalCallMadeDownstream, upstreamDemand, upstreamSubscription
-
Fields inherited from class software.amazon.awssdk.utils.async.DelegatingSubscriber
subscriber
-
-
Constructor Summary
Constructors Constructor Description FlatteningSubscriber(org.reactivestreams.Subscriber<? super U> subscriber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfulfillDownstreamDemand()This method is called when demand from the downstream subscriber needs to be fulfilled.voidonNext(Iterable<U> item)-
Methods inherited from class software.amazon.awssdk.utils.async.BaseSubscriberAdapter
handleStateUpdate, onComplete, onError, onSubscribe
-
-
-
-
Constructor Detail
-
FlatteningSubscriber
public FlatteningSubscriber(org.reactivestreams.Subscriber<? super U> subscriber)
-
-
Method Detail
-
fulfillDownstreamDemand
protected void fulfillDownstreamDemand()
Description copied from class:BaseSubscriberAdapterThis method is called when demand from the downstream subscriber needs to be fulfilled. Called in a loop untildownstreamDemandis no longer needed. Implementations are responsible for decrementing thedownstreamDemandaccordingly as demand gets fulfilled.- Specified by:
fulfillDownstreamDemandin classBaseSubscriberAdapter<Iterable<U>,U>
-
-