Interface ReadResponse
-
- All Known Implementing Classes:
AbstractReadResponse
,ComputeResponseWrapper
,MultiGetResponseWrapper
,MultiKeyResponseWrapper
,ParallelMultiKeyResponseWrapper
,SingleGetResponseWrapper
public interface ReadResponse
This is used to store common fields shared by various read responses. It is intended to store state required to fulfill the service's goals from the perspective of external callers (e.g. the Router or Fast Client). See alsogetStats()
which returns the container used to store state exclusively used by metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompressionStrategy
getCompressionStrategy()
int
getRCU()
Get the read compute unit (RCU) for this response's requestio.netty.buffer.ByteBuf
getResponseBody()
int
getResponseSchemaIdHeader()
ReadResponseStats
getStats()
boolean
isFound()
boolean
isStreamingResponse()
void
setCompressionStrategy(CompressionStrategy compressionStrategy)
void
setRCU(int rcu)
Set the read compute unit (RCU) cost for this response's requestvoid
setStreamingResponse()
-
-
-
Method Detail
-
getStats
ReadResponseStats getStats()
-
setCompressionStrategy
void setCompressionStrategy(CompressionStrategy compressionStrategy)
-
setStreamingResponse
void setStreamingResponse()
-
isStreamingResponse
boolean isStreamingResponse()
-
getCompressionStrategy
CompressionStrategy getCompressionStrategy()
-
setRCU
void setRCU(int rcu)
Set the read compute unit (RCU) cost for this response's request- Parameters:
rcu
-
-
getRCU
int getRCU()
Get the read compute unit (RCU) for this response's request- Returns:
-
isFound
boolean isFound()
-
getResponseBody
io.netty.buffer.ByteBuf getResponseBody()
-
getResponseSchemaIdHeader
int getResponseSchemaIdHeader()
-
-