Package io.kroxylicious.proxy.frame
Class OpaqueRequestFrame
java.lang.Object
io.kroxylicious.proxy.frame.OpaqueFrame
io.kroxylicious.proxy.frame.OpaqueRequestFrame
- All Implemented Interfaces:
Frame,RequestFrame
Used to represent Kafka requests that the proxy does not need to decode.
-
Field Summary
Fields inherited from class io.kroxylicious.proxy.frame.OpaqueFrame
buf, correlationId, lengthFields inherited from interface io.kroxylicious.proxy.frame.Frame
FRAME_SIZE_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionOpaqueRequestFrame(io.netty.buffer.ByteBuf buf, short apiKeyId, short apiVersion, int correlationId, boolean decodeResponse, int length, boolean hasResponse) Creates an opaque request. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the response to this request should be decoded.booleanWhether the Kafka Client expects a response to this requesttoString()Methods inherited from class io.kroxylicious.proxy.frame.OpaqueFrame
apiKeyId, apiVersion, buf, correlationId, encode, estimateEncodedSize, isDecoded, releaseBufferMethods 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
-
OpaqueRequestFrame
public OpaqueRequestFrame(io.netty.buffer.ByteBuf buf, short apiKeyId, short apiVersion, int correlationId, boolean decodeResponse, int length, boolean hasResponse) Creates an opaque request.- Parameters:
buf- The message buffer (excluding the frame size)apiKeyId- api keyapiVersion- api versioncorrelationId- correlation iddecodeResponse- whether the response will be decodedlength- length of the requesthasResponse- true if the request expects a response
-
-
Method Details
-
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
-
toString
- Overrides:
toStringin classOpaqueFrame
-