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 emitSubscriber#onNext(T)signals to a subscriber, based on the demand received with theSubscription.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 Modifier and Type Class Description static classEmittingSubscription.Builder<T>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> EmittingSubscription.Builder<T>builder()voidcancel()voidrequest(long n)
-
-
-
Method Detail
-
builder
public static <T> EmittingSubscription.Builder<T> builder()
-
request
public void request(long n)
- Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()
- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
-