Package io.kroxylicious.proxy.frame
Class DecodedRequestFrame<B extends org.apache.kafka.common.protocol.ApiMessage>
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.kroxylicious.proxy.frame.DecodedFrame<org.apache.kafka.common.message.RequestHeaderData,B>
io.kroxylicious.proxy.frame.DecodedRequestFrame<B>
- All Implemented Interfaces:
Frame,RequestFrame,io.netty.util.ReferenceCounted
- Direct Known Subclasses:
InternalRequestFrame
public class DecodedRequestFrame<B extends org.apache.kafka.common.protocol.ApiMessage>
extends DecodedFrame<org.apache.kafka.common.message.RequestHeaderData,B>
implements RequestFrame
A decoded request frame.
-
Field Summary
Fields inherited from class io.kroxylicious.proxy.frame.DecodedFrame
apiVersion, body, correlationId, headerFields inherited from interface io.kroxylicious.proxy.frame.Frame
FRAME_SIZE_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionDecodedRequestFrame(short apiVersion, int correlationId, boolean decodeResponse, org.apache.kafka.common.message.RequestHeaderData header, B body) -
Method Summary
Modifier and TypeMethodDescriptionprotected DecodedResponseFrame<? extends org.apache.kafka.common.protocol.ApiMessage> createResponseFrame(org.apache.kafka.common.message.ResponseHeaderData header, org.apache.kafka.common.protocol.ApiMessage message) booleanWhether the response to this request should be decoded.booleanWhether the Kafka Client expects a response to this requestshortDecodedResponseFrame<? extends org.apache.kafka.common.protocol.ApiMessage> responseFrame(org.apache.kafka.common.message.ResponseHeaderData header, org.apache.kafka.common.protocol.ApiMessage message) Methods inherited from class io.kroxylicious.proxy.frame.DecodedFrame
add, apiKey, apiKeyId, apiVersion, body, correlationId, deallocate, encode, estimateEncodedSize, header, isDecoded, toString, touch, transferBuffersToMethods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, retain, retain, setRefCnt, touchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.kroxylicious.proxy.frame.Frame
apiKeyId, apiVersion, correlationId, encode, estimateEncodedSize, isDecoded
-
Constructor Details
-
DecodedRequestFrame
public DecodedRequestFrame(short apiVersion, int correlationId, boolean decodeResponse, org.apache.kafka.common.message.RequestHeaderData header, B body)
-
-
Method Details
-
headerVersion
public short headerVersion()- Specified by:
headerVersionin classDecodedFrame<org.apache.kafka.common.message.RequestHeaderData,B extends org.apache.kafka.common.protocol.ApiMessage>
-
decodeResponse
public boolean decodeResponse()Description copied from interface:RequestFrameWhether the response to this request should be decoded.- Specified by:
decodeResponsein interfaceRequestFrame- Returns:
- Whether the response to this request should be decoded.
-
hasResponse
public boolean hasResponse()Description copied from interface:RequestFrameWhether the Kafka Client expects a response to this request- Specified by:
hasResponsein interfaceRequestFrame- Returns:
- Whether the Kafka Client expects a response to this request
-
responseFrame
public DecodedResponseFrame<? extends org.apache.kafka.common.protocol.ApiMessage> responseFrame(org.apache.kafka.common.message.ResponseHeaderData header, org.apache.kafka.common.protocol.ApiMessage message) -
createResponseFrame
protected DecodedResponseFrame<? extends org.apache.kafka.common.protocol.ApiMessage> createResponseFrame(org.apache.kafka.common.message.ResponseHeaderData header, org.apache.kafka.common.protocol.ApiMessage message)
-