@SpiMeta(name="motan2") public class MotanV2Codec extends AbstractCodec
serializations| 构造器和说明 |
|---|
MotanV2Codec() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
decode(Channel channel,
String remoteIp,
byte[] data)
decode data
|
byte[] |
encode(Channel channel,
Object message) |
createInput, createOutput, deserialize, getSerializaiontByNum, initAllSerialziation, serializepublic byte[] encode(Channel channel, Object message) throws IOException
IOExceptionpublic Object decode(Channel channel, String remoteIp, byte[] data) throws IOException
remoteIp - 用来在server端decode request时能获取到client的ip。IOExceptionCopyright © 2017. All rights reserved.