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
Constructors Constructor Description BytesWrittenTrackingPublisher(org.reactivestreams.Publisher<ByteBuffer> upstream, RequestBodyMetrics metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsubscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
-
-
-
Constructor Detail
-
BytesWrittenTrackingPublisher
public BytesWrittenTrackingPublisher(org.reactivestreams.Publisher<ByteBuffer> upstream, RequestBodyMetrics metrics)
-
-
Method Detail
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<ByteBuffer>
-
-