Interface PublisherListener<T>
-
- All Superinterfaces:
SubscriberListener<T>
- All Known Subinterfaces:
AsyncRequestBodyListener
,AsyncResponseTransformerListener<ResponseT>
public interface PublisherListener<T> extends SubscriberListener<T>
Listener interface that invokes callbacks associated with aPublisher
and any resultingSubscriber
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PublisherListener.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 default void
publisherSubscribe(org.reactivestreams.Subscriber<? super T> subscriber)
Invoked beforePublisher.subscribe(Subscriber)
static <T> SdkPublisher<T>
wrap(SdkPublisher<T> delegate, PublisherListener<T> listener)
Wrap aSdkPublisher
with a new one that will notify aPublisherListener
of 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 aSdkPublisher
with a new one that will notify aPublisherListener
of important events occurring.
-
-