public interface ResponseDataConsumer extends java.util.function.Consumer<byte[]>, OperationHandler
Modifier and Type | Method and Description |
---|---|
default void |
accept(byte[] bodyBytesIn) |
void |
onFinished()
Invoked when the transfer has completed normally
|
void |
onResponseData(byte[] bodyBytesIn)
Called multiple times in sequence until there are no more response body bytes.
|
andThen
onException, onResponseHeaders
default void accept(byte[] bodyBytesIn)
accept
in interface java.util.function.Consumer<byte[]>
void onResponseData(byte[] bodyBytesIn)
bodyBytesIn
- the next sequence of bytes representing the data requested through the operationvoid onFinished()
onFinished
in interface OperationHandler
Copyright © 2021. All rights reserved.