@NotThreadSafe public final class BlockReadHandler.BlockDataReader extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
completeRequest(BlockReadRequestContext context)
Completes the read request.
|
protected DataBuffer |
getDataBuffer(BlockReadRequestContext context,
io.grpc.stub.StreamObserver<ReadResponse> response,
long offset,
int len)
Returns the appropriate
DataBuffer representing the data to send, depending on the
configurable transfer type. |
protected void completeRequest(BlockReadRequestContext context) throws Exception
context
- context of the request to completeException
protected DataBuffer getDataBuffer(BlockReadRequestContext context, io.grpc.stub.StreamObserver<ReadResponse> response, long offset, int len) throws Exception
DataBuffer
representing the data to send, depending on the
configurable transfer type.context
- context of the request to completeresponse
- the gRPC response observerlen
- The length, in bytes, of the data to read from the blockDataBuffer
representing the dataException
Copyright © 2023. All Rights Reserved.