Class BaseSubscriberAdapter<T,U>
java.lang.Object
software.amazon.awssdk.utils.async.DelegatingSubscriber<T,U>
software.amazon.awssdk.utils.async.BaseSubscriberAdapter<T,U>
- Type Parameters:
T
- the type that the delegate subscriber demands.U
- the type sent by the publisher this subscriber is subscribed to.
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>
- Direct Known Subclasses:
DelegatingBufferingSubscriber
,FlatteningSubscriber
Base of subscribers that can adapt one type to another. This subscriber will receive onNext signal with the
U
type,
but will need to fulfill the downstream demand
of the delegate
subscriber with instance of the T
type.-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
onSubscribe
(org.reactivestreams.Subscription subscription)
-
Method Details
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription) - Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<T>
- Overrides:
onSubscribe
in classDelegatingSubscriber<T,
U>
-
onNext
-
onError
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<T>
- Overrides:
onError
in classDelegatingSubscriber<T,
U>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<T>
- Overrides:
onComplete
in classDelegatingSubscriber<T,
U>
-