Interface PublisherListener<T>
- All Superinterfaces:
SubscriberListener<T>
- All Known Subinterfaces:
AsyncRequestBodyListener,AsyncResponseTransformerListener<ResponseT>
- All Known Implementing Classes:
PublisherListener.NoOpPublisherListener
Listener interface that invokes callbacks associated with a
Publisher and any resulting Subscriber.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface software.amazon.awssdk.core.async.listener.SubscriberListener
SubscriberListener.NotifyingSubscriber<T> -
Method Summary
Modifier and TypeMethodDescriptionnoOp()default voidpublisherSubscribe(org.reactivestreams.Subscriber<? super T> subscriber) Invoked beforePublisher.subscribe(Subscriber)static <T> SdkPublisher<T>wrap(SdkPublisher<T> delegate, PublisherListener<T> listener) Wrap aSdkPublisherwith a new one that will notify aPublisherListenerof important events occurring.Methods inherited from interface software.amazon.awssdk.core.async.listener.SubscriberListener
subscriberOnComplete, subscriberOnError, subscriberOnNext, subscriptionCancel
-
Method Details
-
publisherSubscribe
Invoked beforePublisher.subscribe(Subscriber) -
wrap
Wrap aSdkPublisherwith a new one that will notify aPublisherListenerof important events occurring. -
noOp
-