public static interface AsyncRequestBodyFromInputStreamConfiguration.Builder extends CopyableBuilder<AsyncRequestBodyFromInputStreamConfiguration.Builder,AsyncRequestBodyFromInputStreamConfiguration>
Modifier and Type | Method and Description |
---|---|
AsyncRequestBodyFromInputStreamConfiguration.Builder |
contentLength(Long contentLength)
Configures the length of the provided
InputStream |
AsyncRequestBodyFromInputStreamConfiguration.Builder |
executor(ExecutorService executor)
Configures the
ExecutorService to perform the blocking data reads. |
AsyncRequestBodyFromInputStreamConfiguration.Builder |
inputStream(InputStream inputStream)
Configures the InputStream.
|
AsyncRequestBodyFromInputStreamConfiguration.Builder |
maxReadLimit(Integer maxReadLimit)
Configures max read limit used to mark and reset the
InputStream . |
copy
applyMutation, build
AsyncRequestBodyFromInputStreamConfiguration.Builder inputStream(InputStream inputStream)
inputStream
- the InputStreamAsyncRequestBodyFromInputStreamConfiguration.Builder contentLength(Long contentLength)
InputStream
contentLength
- the content lengthAsyncRequestBodyFromInputStreamConfiguration.Builder executor(ExecutorService executor)
ExecutorService
to perform the blocking data reads.executor
- the executorAsyncRequestBodyFromInputStreamConfiguration.Builder maxReadLimit(Integer maxReadLimit)
InputStream
. This will have no
effect if the stream doesn't support mark and reset.
By default, it is 128 KiB.
maxReadLimit
- the max read limitInputStream.mark(int)
Copyright © 2023. All rights reserved.