Interface TransportClientStreamingCallback
- All Known Subinterfaces:
RecordStreamDecoder
- All Known Implementing Classes:
AbstractRecordStreamDecoder,ClientComputeRecordStreamDecoder,ComputeRecordStreamDecoder,MultiGetRecordStreamDecoder
public interface TransportClientStreamingCallback
Callback to support streaming in
TransportClient-
Method Summary
Modifier and TypeMethodDescriptionvoidonCompletion(Optional<VeniceClientException> exception) This will be invoked when the response is fully completed.voidonDataReceived(ByteBuffer chunk) This will be invoked when a new data chunk is available.voidonHeaderReceived(Map<String, String> headers) This will be invoked when headers are available.
-
Method Details
-
onHeaderReceived
This will be invoked when headers are available.- Parameters:
headers-
-
onDataReceived
This will be invoked when a new data chunk is available.- Parameters:
chunk-
-
onCompletion
This will be invoked when the response is fully completed. When any error happens, will contain the underlying exception.- Parameters:
exception-
-