public final class AwsCrtRequestBodySubscriber extends Object implements org.reactivestreams.Subscriber<ByteBuffer>
| Constructor and Description |
|---|
AwsCrtRequestBodySubscriber(int windowSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(ByteBuffer byteBuffer) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
protected void |
requestDataIfNecessary() |
boolean |
transferRequestBody(ByteBuffer out)
Transfers any queued data from the Request Body subscriptionRef to the output buffer
|
public AwsCrtRequestBodySubscriber(int windowSize)
windowSize - The number bytes to be queued before we stop proactively queuing dataprotected void requestDataIfNecessary()
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<ByteBuffer>public void onNext(ByteBuffer byteBuffer)
onNext in interface org.reactivestreams.Subscriber<ByteBuffer>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<ByteBuffer>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<ByteBuffer>public boolean transferRequestBody(ByteBuffer out)
out - The output ByteBufferCopyright © 2021. All rights reserved.