public class InputStreamWithExecutorAsyncRequestBody extends Object implements AsyncRequestBody
AsyncRequestBody
that allows reading data off of an InputStream
using a background
ExecutorService
.
Created via AsyncRequestBody.fromInputStream(InputStream, Long, ExecutorService)
.
Constructor and Description |
---|
InputStreamWithExecutorAsyncRequestBody(InputStream inputStream,
Long contentLength,
ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
Future<?> |
activeWriteFuture() |
Optional<Long> |
contentLength() |
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentType, empty, forBlockingInputStream, forBlockingOutputStream, fromByteBuffer, fromBytes, fromFile, fromFile, fromInputStream, fromPublisher, fromString, fromString
adapt, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
public InputStreamWithExecutorAsyncRequestBody(InputStream inputStream, Long contentLength, ExecutorService executor)
public Optional<Long> contentLength()
contentLength
in interface AsyncRequestBody
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
subscribe
in interface org.reactivestreams.Publisher<ByteBuffer>
public Future<?> activeWriteFuture()
Copyright © 2023. All rights reserved.