public final class EventListeningSubscriber<T> extends DelegatingSubscriber<T,T>
Subscriber that can invoke callbacks during various parts of the subscriber and subscription lifecycle.subscriber| Constructor and Description |
|---|
EventListeningSubscriber(org.reactivestreams.Subscriber<T> subscriber,
Runnable afterCompleteListener,
Consumer<Throwable> afterErrorListener,
Runnable afterCancelListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete() |
void |
onError(Throwable throwable) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
public void onNext(T t)
public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<T>onSubscribe in class DelegatingSubscriber<T,T>public void onError(Throwable throwable)
onError in interface org.reactivestreams.Subscriber<T>onError in class DelegatingSubscriber<T,T>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<T>onComplete in class DelegatingSubscriber<T,T>Copyright © 2022. All rights reserved.