Class SequentialSubscriber<T>
- java.lang.Object
-
- software.amazon.awssdk.utils.async.SequentialSubscriber<T>
-
- Type Parameters:
T
- Type of data requested
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>
public class SequentialSubscriber<T> extends Object implements org.reactivestreams.Subscriber<T>
A simple implementation ofSubscriber
that requests data one at a time.
-
-
Constructor Summary
Constructors Constructor Description SequentialSubscriber(Consumer<T> consumer, CompletableFuture<Void> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete()
void
onError(Throwable t)
void
onNext(T t)
void
onSubscribe(org.reactivestreams.Subscription subscription)
-
-
-
Constructor Detail
-
SequentialSubscriber
public SequentialSubscriber(Consumer<T> consumer, CompletableFuture<Void> future)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<T>
-
onError
public void onError(Throwable t)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<T>
-
-