Interface PublisherListener<T>
-
- All Superinterfaces:
SubscriberListener<T>
- All Known Subinterfaces:
AsyncRequestBodyListener,AsyncResponseTransformerListener<ResponseT>
- All Known Implementing Classes:
PublisherListener.NoOpPublisherListener
public interface PublisherListener<T> extends SubscriberListener<T>
Listener interface that invokes callbacks associated with aPublisherand any resultingSubscriber.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPublisherListener.NoOpPublisherListenerstatic classPublisherListener.NotifyingPublisher<T>-
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.async.listener.SubscriberListener
SubscriberListener.NotifyingSubscriber<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static PublisherListener.NoOpPublisherListenernoOp()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 Detail
-
publisherSubscribe
default void publisherSubscribe(org.reactivestreams.Subscriber<? super T> subscriber)
Invoked beforePublisher.subscribe(Subscriber)
-
wrap
static <T> SdkPublisher<T> wrap(SdkPublisher<T> delegate, PublisherListener<T> listener)
Wrap aSdkPublisherwith a new one that will notify aPublisherListenerof important events occurring.
-
noOp
static PublisherListener.NoOpPublisherListener noOp()
-
-