public class HeadMapSerializer extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,String> |
decode(io.netty.buffer.ByteBuf in,
int length)
decode head map
|
int |
encode(Map<String,String> map,
io.netty.buffer.ByteBuf out)
encode head map
|
static HeadMapSerializer |
getInstance() |
protected String |
readString(io.netty.buffer.ByteBuf in)
Read string
|
protected void |
writeString(io.netty.buffer.ByteBuf out,
String str)
Write string
|
public static HeadMapSerializer getInstance()
public int encode(Map<String,String> map, io.netty.buffer.ByteBuf out)
map - header mapout - ByteBufpublic Map<String,String> decode(io.netty.buffer.ByteBuf in, int length)
in - ByteBuflength - of head map bytesprotected void writeString(io.netty.buffer.ByteBuf out,
String str)
out - ByteBufstr - Stringprotected String readString(io.netty.buffer.ByteBuf in)
in - ByteBufCopyright © 2019 Seata. All rights reserved.