public final class FileAsyncRequestBody extends Object implements AsyncRequestBody
AsyncRequestBody that reads data from a file.| Modifier and Type | Class and Description |
|---|---|
static interface |
FileAsyncRequestBody.Builder
A builder for
FileAsyncRequestBody. |
| Modifier and Type | Method and Description |
|---|---|
static FileAsyncRequestBody.Builder |
builder() |
Optional<Long> |
contentLength() |
String |
contentType() |
void |
subscribe(<any> s)
Subscribes to the publisher with the given
Consumer. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, fromByteBuffer, fromBytes, fromFile, fromFile, fromPublisher, fromString, fromStringadapt, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, mappublic Optional<Long> contentLength()
contentLength in interface AsyncRequestBodypublic String contentType()
contentType in interface AsyncRequestBodypublic void subscribe(<any> s)
SdkPublisherConsumer. This consumer will be called for each event
published. There is no backpressure using this method if the Consumer dispatches processing asynchronously. If more
control over backpressure is required, consider using #subscribe(Subscriber).subscribe in interface SdkPublisher<ByteBuffer>s - Consumer to process event.public static FileAsyncRequestBody.Builder builder()
FileAsyncRequestBody.Copyright © 2022. All rights reserved.