public class ProtocolV1Decoder
extends io.netty.handler.codec.LengthFieldBasedFrameDecoder
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+ | magic |Proto| Full length | Head | Msg |Seria|Compr| RequestId | | code |colVer| (head+body) | Length |Type |lizer|ess | | +-----------+-----------+-----------+-----------+-----------+-----------+-----------+-----------+ | | | Head Map [Optional] | +-----------+-----------+-----------+-----------+-----------+-----------+-----------+-----------+ | | | body | | | | ... ... | +-----------------------------------------------------------------------------------------------+
ProtocolV1Encoder| Constructor and Description |
|---|
ProtocolV1Decoder() |
ProtocolV1Decoder(int maxFrameLength) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
Object |
decodeFrame(io.netty.buffer.ByteBuf frame) |
decode, extractFrame, getUnadjustedFrameLengthactualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharableCopyright © 2023 Seata. All rights reserved.