T
- Type of data requestedpublic class SequentialSubscriber<T> extends Object implements org.reactivestreams.Subscriber<T>
Subscriber
that requests data one at a time.Constructor and Description |
---|
SequentialSubscriber(Consumer<T> consumer,
CompletableFuture<Void> future) |
Modifier and Type | Method and Description |
---|---|
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
public SequentialSubscriber(Consumer<T> consumer, CompletableFuture<Void> future)
public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe
in interface org.reactivestreams.Subscriber<T>
public void onError(Throwable t)
onError
in interface org.reactivestreams.Subscriber<T>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<T>
Copyright © 2022. All rights reserved.