public class ChecksumCalculatingAsyncRequestBody extends Object implements AsyncRequestBody
Modifier and Type | Class and Description |
---|---|
static interface |
ChecksumCalculatingAsyncRequestBody.Builder |
Modifier and Type | Field and Description |
---|---|
static byte[] |
FINAL_BYTE |
Modifier and Type | Method and Description |
---|---|
static ChecksumCalculatingAsyncRequestBody.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, wait
empty, fromByteBuffer, fromBytes, fromFile, fromFile, fromPublisher, fromString, fromString
adapt, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map
public static ChecksumCalculatingAsyncRequestBody.Builder builder()
FileAsyncRequestBody
.public Optional<Long> contentLength()
contentLength
in interface AsyncRequestBody
public String contentType()
contentType
in interface AsyncRequestBody
public void subscribe(<any> s)
SdkPublisher
Consumer
. 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.Copyright © 2022. All rights reserved.