Interface SubscriberListener<T>
- All Known Subinterfaces:
AsyncRequestBodyListener,AsyncResponseTransformerListener<ResponseT>,PublisherListener<T>
- All Known Implementing Classes:
PublisherListener.NoOpPublisherListener
Listener interface that invokes callbacks associated with a
Subscriber.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class -
Method Summary
Modifier and TypeMethodDescriptiondefault voidInvoked beforeSubscriber.onComplete()default voidInvoked beforeSubscriber.onError(Throwable)default voidInvoked beforeSubscriber.onNext(Object)default voidInvoked beforeSubscription.cancel()static <T> org.reactivestreams.Subscriber<T>wrap(org.reactivestreams.Subscriber<? super T> delegate, SubscriberListener<? super T> listener) Wrap aSubscriberwith a new one that will notify aSubscriberListenerof important events occurring.
-
Method Details
-
subscriberOnNext
Invoked beforeSubscriber.onNext(Object) -
subscriberOnComplete
default void subscriberOnComplete()Invoked beforeSubscriber.onComplete() -
subscriberOnError
Invoked beforeSubscriber.onError(Throwable) -
subscriptionCancel
default void subscriptionCancel()Invoked beforeSubscription.cancel() -
wrap
static <T> org.reactivestreams.Subscriber<T> wrap(org.reactivestreams.Subscriber<? super T> delegate, SubscriberListener<? super T> listener) Wrap aSubscriberwith a new one that will notify aSubscriberListenerof important events occurring.
-