T
- POJO response type.public interface ResponseDataConsumer<T> extends OperationHandler
Modifier and Type | Method and Description |
---|---|
void |
onFinished()
Invoked when the transfer has completed normally
|
void |
onResponse(T response)
Called when the unmarshalled response object is ready.
|
void |
onResponseData(ByteBuffer bodyBytesIn)
Called multiple times in sequence until there are no more response body bytes.
|
onException, onResponseHeaders
void onResponse(T response)
response
- The unmarshalled response.void onResponseData(ByteBuffer bodyBytesIn)
bodyBytesIn
- the next sequence of bytes representing the data requested through the operationvoid onFinished()
onFinished
in interface OperationHandler
Copyright © 2021. All rights reserved.