Class AddingTrailingDataSubscriber<T>
- java.lang.Object
-
- software.amazon.awssdk.utils.async.DelegatingSubscriber<T,T>
-
- software.amazon.awssdk.utils.async.AddingTrailingDataSubscriber<T>
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>
@SdkProtectedApi public class AddingTrailingDataSubscriber<T> extends DelegatingSubscriber<T,T>
Allows to send trailing data before invoking onComplete on the downstream subscriber. trailingDataIterable will be created when the upstream subscriber has called onComplete.
-
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.utils.async.DelegatingSubscriber
subscriber
-
-
Constructor Summary
Constructors Constructor Description AddingTrailingDataSubscriber(org.reactivestreams.Subscriber<? super T> subscriber, Supplier<Iterable<T>> trailingDataIterableSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable throwable)voidonNext(T t)voidonSubscribe(org.reactivestreams.Subscription subscription)
-
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription)
- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<T>- Overrides:
onSubscribein classDelegatingSubscriber<T,T>
-
onError
public void onError(Throwable throwable)
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<T>- Overrides:
onErrorin classDelegatingSubscriber<T,T>
-
onNext
public void onNext(T t)
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>- Overrides:
onCompletein classDelegatingSubscriber<T,T>
-
-