Class AbstractReadResponse
java.lang.Object
com.linkedin.venice.listener.response.AbstractReadResponse
- All Implemented Interfaces:
ReadResponse
- Direct Known Subclasses:
MultiKeyResponseWrapper,ParallelMultiKeyResponseWrapper,SingleGetResponseWrapper
This class is used to store common fields shared by various read responses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetRCU()Get the read compute unit (RCU) for this response's requestabstract io.netty.buffer.ByteBufabstract intabstract ReadResponseStatsRecorderbooleanisFound()booleanvoidsetCompressionStrategy(CompressionStrategy compressionStrategy) voidsetRCU(int rcu) Set the read compute unit (RCU) cost for this response's requestvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.davinci.listener.response.ReadResponse
getStats
-
Constructor Details
-
AbstractReadResponse
public AbstractReadResponse()
-
-
Method Details
-
setCompressionStrategy
- Specified by:
setCompressionStrategyin interfaceReadResponse
-
setStreamingResponse
public void setStreamingResponse()- Specified by:
setStreamingResponsein interfaceReadResponse
-
isStreamingResponse
public boolean isStreamingResponse()- Specified by:
isStreamingResponsein interfaceReadResponse
-
getCompressionStrategy
- Specified by:
getCompressionStrategyin interfaceReadResponse
-
setRCU
public void setRCU(int rcu) Set the read compute unit (RCU) cost for this response's request- Specified by:
setRCUin interfaceReadResponse- Parameters:
rcu-
-
getRCU
public int getRCU()Get the read compute unit (RCU) for this response's request- Specified by:
getRCUin interfaceReadResponse- Returns:
-
isFound
public boolean isFound()- Specified by:
isFoundin interfaceReadResponse
-
getResponseBody
public abstract io.netty.buffer.ByteBuf getResponseBody()- Specified by:
getResponseBodyin interfaceReadResponse
-
getResponseSchemaIdHeader
public abstract int getResponseSchemaIdHeader()- Specified by:
getResponseSchemaIdHeaderin interfaceReadResponse
-
getStatsRecorder
-