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, waitcontentType, empty, forBlockingInputStream, forBlockingOutputStream, fromByteBuffer, fromBytes, fromFile, fromFile, fromInputStream, fromPublisher, fromString, fromStringadapt, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribepublic InputStreamWithExecutorAsyncRequestBody(InputStream inputStream, Long contentLength, ExecutorService executor)
public Optional<Long> contentLength()
contentLength in interface AsyncRequestBodypublic void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
subscribe in interface org.reactivestreams.Publisher<ByteBuffer>public Future<?> activeWriteFuture()
Copyright © 2022. All rights reserved.