类 ByteBufPair.Encoder

  • 所有已实现的接口:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelOutboundHandler
    封闭类:
    ByteBufPair

    @Sharable
    public static class ByteBufPair.Encoder
    extends io.netty.channel.ChannelOutboundHandlerAdapter
    • 嵌套类概要

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

        io.netty.channel.ChannelHandler.Sharable
    • 构造器概要

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

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void write​(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg, io.netty.channel.ChannelPromise promise)  
      • 从类继承的方法 io.netty.channel.ChannelOutboundHandlerAdapter

        bind, close, connect, deregister, disconnect, flush, read
      • 从类继承的方法 io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, 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
    • 构造器详细资料

      • Encoder

        public Encoder()
    • 方法详细资料

      • write

        public void write​(io.netty.channel.ChannelHandlerContext ctx,
                          java.lang.Object msg,
                          io.netty.channel.ChannelPromise promise)
                   throws java.lang.Exception
        指定者:
        write 在接口中 io.netty.channel.ChannelOutboundHandler
        覆盖:
        write 在类中 io.netty.channel.ChannelOutboundHandlerAdapter
        抛出:
        java.lang.Exception