com.alipay.remoting.rpc.protocol
Class RpcCommandEncoderV2

java.lang.Object
  extended by com.alipay.remoting.rpc.protocol.RpcCommandEncoderV2
All Implemented Interfaces:
CommandEncoder

public class RpcCommandEncoderV2
extends Object
implements CommandEncoder

Encode remoting command into ByteBuf v2.


Constructor Summary
RpcCommandEncoderV2()
           
 
Method Summary
 void encode(io.netty.channel.ChannelHandlerContext ctx, Serializable msg, io.netty.buffer.ByteBuf out)
          Encode object into bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcCommandEncoderV2

public RpcCommandEncoderV2()
Method Detail

encode

public void encode(io.netty.channel.ChannelHandlerContext ctx,
                   Serializable msg,
                   io.netty.buffer.ByteBuf out)
            throws Exception
Description copied from interface: CommandEncoder
Encode object into bytes.

Specified by:
encode in interface CommandEncoder
Throws:
Exception
See Also:
CommandEncoder.encode(ChannelHandlerContext, Serializable, ByteBuf)


Copyright © 2018. All rights reserved.