Interface SubscriberListener<T>
-
- All Known Subinterfaces:
AsyncRequestBodyListener,AsyncResponseTransformerListener<ResponseT>,PublisherListener<T>
- All Known Implementing Classes:
PublisherListener.NoOpPublisherListener
@SdkProtectedApi public interface SubscriberListener<T>
Listener interface that invokes callbacks associated with aSubscriber.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSubscriberListener.NotifyingSubscriber<T>
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default voidsubscriberOnComplete()Invoked beforeSubscriber.onComplete()default voidsubscriberOnError(Throwable t)Invoked beforeSubscriber.onError(Throwable)default voidsubscriberOnNext(T t)Invoked beforeSubscriber.onNext(Object)default voidsubscriptionCancel()Invoked 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 Detail
-
subscriberOnNext
default void subscriberOnNext(T t)
Invoked beforeSubscriber.onNext(Object)
-
subscriberOnComplete
default void subscriberOnComplete()
Invoked beforeSubscriber.onComplete()
-
subscriberOnError
default void subscriberOnError(Throwable t)
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.
-
-