类 MsgDecoder

  • 所有已实现的接口:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    @Sharable
    public class MsgDecoder
    extends io.netty.handler.codec.ReplayingDecoder<Msg>
    将接收到的消息进行解码
    • 嵌套类概要

      • 从类继承的嵌套类/接口 io.netty.handler.codec.ByteToMessageDecoder

        io.netty.handler.codec.ByteToMessageDecoder.Cumulator
      • 从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • 字段概要

      • 从类继承的字段 io.netty.handler.codec.ByteToMessageDecoder

        COMPOSITE_CUMULATOR, MERGE_CUMULATOR
    • 构造器概要

      构造器 
      构造器 说明
      MsgDecoder()  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected void decode​(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)  
      boolean isSharable()  
      • 从类继承的方法 io.netty.handler.codec.ReplayingDecoder

        callDecode, checkpoint, checkpoint, state, state
      • 从类继承的方法 io.netty.handler.codec.ByteToMessageDecoder

        actualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
      • 从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
      • 从类继承的方法 io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded
      • 从接口继承的方法 io.netty.channel.ChannelHandler

        handlerAdded
    • 构造器详细资料

      • MsgDecoder

        public MsgDecoder()
    • 方法详细资料

      • isSharable

        public boolean isSharable()
        覆盖:
        isSharable 在类中 io.netty.channel.ChannelHandlerAdapter
      • decode

        protected void decode​(io.netty.channel.ChannelHandlerContext ctx,
                              io.netty.buffer.ByteBuf in,
                              List<Object> out)
                       throws Exception
        指定者:
        decode 在类中 io.netty.handler.codec.ByteToMessageDecoder
        抛出:
        Exception