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
-
Method Summary
Modifier and TypeMethodDescriptionint
getRCU()
Get the read compute unit (RCU) for this response's requestabstract io.netty.buffer.ByteBuf
abstract int
abstract ReadResponseStatsRecorder
boolean
isFound()
boolean
void
setCompressionStrategy
(CompressionStrategy compressionStrategy) void
setRCU
(int rcu) Set the read compute unit (RCU) cost for this response's requestvoid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.davinci.listener.response.ReadResponse
getStats
-
Constructor Details
-
AbstractReadResponse
public AbstractReadResponse()
-
-
Method Details
-
setCompressionStrategy
- Specified by:
setCompressionStrategy
in interfaceReadResponse
-
setStreamingResponse
public void setStreamingResponse()- Specified by:
setStreamingResponse
in interfaceReadResponse
-
isStreamingResponse
public boolean isStreamingResponse()- Specified by:
isStreamingResponse
in interfaceReadResponse
-
getCompressionStrategy
- Specified by:
getCompressionStrategy
in interfaceReadResponse
-
setRCU
public void setRCU(int rcu) Set the read compute unit (RCU) cost for this response's request- Specified by:
setRCU
in interfaceReadResponse
- Parameters:
rcu
-
-
getRCU
public int getRCU()Get the read compute unit (RCU) for this response's request- Specified by:
getRCU
in interfaceReadResponse
- Returns:
-
isFound
public boolean isFound()- Specified by:
isFound
in interfaceReadResponse
-
getResponseBody
public abstract io.netty.buffer.ByteBuf getResponseBody()- Specified by:
getResponseBody
in interfaceReadResponse
-
getResponseSchemaIdHeader
public abstract int getResponseSchemaIdHeader()- Specified by:
getResponseSchemaIdHeader
in interfaceReadResponse
-
getStatsRecorder
-