com.alibaba.dubbo.remoting
Interface Codec2

All Known Implementing Classes:
AbstractCodec, CodecAdapter, DubboCodec, DubboCountCodec, ExchangeCodec, TelnetCodec, ThriftCodec, ThriftNativeCodec, TransportCodec

@SPI
public interface Codec2

Author:
kimi

Nested Class Summary
static class Codec2.DecodeResult
           
 
Method Summary
 Object decode(Channel channel, ChannelBuffer buffer)
           
 void encode(Channel channel, ChannelBuffer buffer, Object message)
           
 

Method Detail

encode

@Adaptive(value="codec")
void encode(Channel channel,
                          ChannelBuffer buffer,
                          Object message)
            throws IOException
Throws:
IOException

decode

@Adaptive(value="codec")
Object decode(Channel channel,
                            ChannelBuffer buffer)
              throws IOException
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.