Class EmittingSubscription<T>
java.lang.Object
software.amazon.awssdk.core.internal.async.EmittingSubscription<T>
- Type Parameters:
T- the type of object to emit to the subscriber.
- All Implemented Interfaces:
org.reactivestreams.Subscription
@SdkInternalApi
@ThreadSafe
public final class EmittingSubscription<T>
extends Object
implements org.reactivestreams.Subscription
Subscription which can emit
signals to a subscriber, based on the demand received with the
invalid reference
Subscriber#onNext(T)
Subscription.request(long). It tracks the outstandingDemand that has not yet been fulfilled and used a Supplier
passed to it to create the object it needs to emit.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> EmittingSubscription.Builder<T> builder()voidcancel()voidrequest(long n)
-
Method Details
-
builder
-
request
public void request(long n) - Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-