com.alibaba.dubbo.remoting.exchange.codec
Class ExchangeCodec
java.lang.Object
com.alibaba.dubbo.remoting.transport.AbstractCodec
com.alibaba.dubbo.remoting.transport.codec.TransportCodec
com.alibaba.dubbo.remoting.telnet.codec.TelnetCodec
com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec
- All Implemented Interfaces:
- Codec2
- Direct Known Subclasses:
- DubboCodec
public class ExchangeCodec
- extends TelnetCodec
ExchangeCodec.
- Author:
- qianlei, william.liangf
ExchangeCodec
public ExchangeCodec()
getMagicCode
public Short getMagicCode()
encode
public void encode(Channel channel,
ChannelBuffer buffer,
Object msg)
throws IOException
- Specified by:
encode
in interface Codec2
- Overrides:
encode
in class TelnetCodec
- Throws:
IOException
decode
public Object decode(Channel channel,
ChannelBuffer buffer)
throws IOException
- Specified by:
decode
in interface Codec2
- Overrides:
decode
in class TelnetCodec
- Throws:
IOException
Copyright © 2012–2017 Alibaba. All rights reserved.