Class InputStreamWithExecutorAsyncRequestBody
- java.lang.Object
-
- software.amazon.awssdk.core.internal.async.InputStreamWithExecutorAsyncRequestBody
-
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>,AsyncRequestBody,SdkPublisher<ByteBuffer>
public class InputStreamWithExecutorAsyncRequestBody extends Object implements AsyncRequestBody
AAsyncRequestBodythat allows reading data off of anInputStreamusing a backgroundExecutorService.Created via
AsyncRequestBody.fromInputStream(InputStream, Long, ExecutorService).
-
-
Constructor Summary
Constructors Constructor Description InputStreamWithExecutorAsyncRequestBody(AsyncRequestBodyFromInputStreamConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<?>activeWriteFuture()Optional<Long>contentLength()voidsubscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
contentType, split, split
-
Methods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
-
-
-
Constructor Detail
-
InputStreamWithExecutorAsyncRequestBody
public InputStreamWithExecutorAsyncRequestBody(AsyncRequestBodyFromInputStreamConfiguration configuration)
-
-
Method Detail
-
contentLength
public Optional<Long> contentLength()
- Specified by:
contentLengthin interfaceAsyncRequestBody- Returns:
- The content length of the data being produced.
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<ByteBuffer>
-
activeWriteFuture
public Future<?> activeWriteFuture()
-
-