public class ProtocolV1Encoder
extends io.netty.handler.codec.MessageToByteEncoder
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 | | | | ... ... | +-----------------------------------------------------------------------------------------------+
ProtocolV1Decoder| 构造器和说明 |
|---|
ProtocolV1Encoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic void encode(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.buffer.ByteBuf out)
encode 在类中 io.netty.handler.codec.MessageToByteEncoderCopyright © 2022 Seata. All rights reserved.