com.alibaba.rocketmq.remoting.netty
类 NettyEncoder

java.lang.Object
  继承者 io.netty.channel.ChannelHandlerAdapter
      继承者 io.netty.channel.ChannelOutboundHandlerAdapter
          继承者 io.netty.handler.codec.MessageToByteEncoder<RemotingCommand>
              继承者 com.alibaba.rocketmq.remoting.netty.NettyEncoder
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelOutboundHandler

public class NettyEncoder
extends io.netty.handler.codec.MessageToByteEncoder<RemotingCommand>

协议编码器

从以下版本开始:
2013-7-13
作者:
shijia.wxr

嵌套类摘要
 
从接口 io.netty.channel.ChannelHandler 继承的嵌套类/接口
io.netty.channel.ChannelHandler.Sharable
 
构造方法摘要
NettyEncoder()
           
 
方法摘要
 void encode(io.netty.channel.ChannelHandlerContext ctx, RemotingCommand remotingCommand, io.netty.buffer.ByteBuf out)
           
 
从类 io.netty.handler.codec.MessageToByteEncoder 继承的方法
acceptOutboundMessage, allocateBuffer, write
 
从类 io.netty.channel.ChannelOutboundHandlerAdapter 继承的方法
bind, close, connect, deregister, disconnect, flush, read
 
从类 io.netty.channel.ChannelHandlerAdapter 继承的方法
exceptionCaught, handlerAdded, handlerRemoved, isSharable
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 io.netty.channel.ChannelHandler 继承的方法
exceptionCaught, handlerAdded, handlerRemoved
 

构造方法详细信息

NettyEncoder

public NettyEncoder()
方法详细信息

encode

public void encode(io.netty.channel.ChannelHandlerContext ctx,
                   RemotingCommand remotingCommand,
                   io.netty.buffer.ByteBuf out)
            throws Exception
指定者:
io.netty.handler.codec.MessageToByteEncoder<RemotingCommand> 中的 encode
抛出:
Exception


Copyright © 2012-2015. All Rights Reserved.