public class CompressionAsyncRequestBody extends Object implements AsyncRequestBody
Compressor.| Modifier and Type | Class and Description |
|---|---|
static interface |
CompressionAsyncRequestBody.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CompressionAsyncRequestBody.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, forBlockingInputStream, forBlockingOutputStream, fromByteBuffer, fromByteBuffers, fromByteBuffersUnsafe, fromByteBufferUnsafe, fromBytes, fromBytesUnsafe, fromFile, fromFile, fromFile, fromFile, fromInputStream, fromInputStream, fromInputStream, fromPublisher, fromRemainingByteBuffer, fromRemainingByteBuffers, fromRemainingByteBuffersUnsafe, fromRemainingByteBufferUnsafe, fromString, fromString, split, splitadapt, addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, mappublic 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 Optional<Long> contentLength()
contentLength in interface AsyncRequestBodypublic String contentType()
contentType in interface AsyncRequestBodypublic static CompressionAsyncRequestBody.Builder builder()
CompressionAsyncRequestBody.Copyright © 2023. All rights reserved.