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 also getStats() which returns the container used to store state exclusively used by metrics.
  • Method Details

    • 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()