Class BytesWrittenTrackingPublisher
java.lang.Object
software.amazon.awssdk.core.internal.metrics.BytesWrittenTrackingPublisher
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>
@SdkInternalApi
public final class BytesWrittenTrackingPublisher
extends Object
implements org.reactivestreams.Publisher<ByteBuffer>
Publisher that tracks how many bytes are published from the wrapped publisher to the downstream subscriber,
along with timing information for throughput calculation.
-
Constructor Summary
ConstructorsConstructorDescriptionBytesWrittenTrackingPublisher(org.reactivestreams.Publisher<ByteBuffer> upstream, RequestBodyMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
-
Constructor Details
-
BytesWrittenTrackingPublisher
public BytesWrittenTrackingPublisher(org.reactivestreams.Publisher<ByteBuffer> upstream, RequestBodyMetrics metrics)
-
-
Method Details
-
subscribe
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<ByteBuffer>
-