Class CompletionTrackingPublisher
java.lang.Object
software.amazon.awssdk.core.internal.http.async.CompletionTrackingPublisher
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>
@SdkInternalApi
public final class CompletionTrackingPublisher
extends Object
implements org.reactivestreams.Publisher<ByteBuffer>
Publisher that records whether the wrapped publisher has signaled
onComplete.
The flag is set before onComplete is forwarded, so any code that the downstream subscriber's
onComplete triggers, on this thread or another, already sees it.
-
Constructor Summary
ConstructorsConstructorDescriptionCompletionTrackingPublisher(org.reactivestreams.Publisher<ByteBuffer> upstream, AtomicBoolean complete) -
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
-
Constructor Details
-
CompletionTrackingPublisher
public CompletionTrackingPublisher(org.reactivestreams.Publisher<ByteBuffer> upstream, AtomicBoolean complete)
-
-
Method Details
-
subscribe
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<ByteBuffer>
-