类 ClientEncoder

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToByteEncoder<Object>
com.envisioniot.sub.client.internal.netty.ClientEncoder
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelOutboundHandler

public class ClientEncoder
extends io.netty.handler.codec.MessageToByteEncoder<Object>
  • 嵌套类概要

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

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

    构造器
    构造器 说明
    ClientEncoder​(com.envisioniot.sub.common.model.SubCategory subCategory)  
  • 方法概要

    修饰符和类型 方法 说明
    protected void encode​(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.buffer.ByteBuf out)  
    static com.google.protobuf.ByteString getCompressData​(com.google.protobuf.ByteString data)  
    static boolean needZip​(com.google.protobuf.ByteString data)  

    从类继承的方法 io.netty.handler.codec.MessageToByteEncoder

    acceptOutboundMessage, allocateBuffer, isPreferDirect, write

    从类继承的方法 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
  • 构造器详细资料

    • ClientEncoder

      public ClientEncoder​(com.envisioniot.sub.common.model.SubCategory subCategory)
  • 方法详细资料

    • encode

      protected void encode​(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.buffer.ByteBuf out) throws Exception
      指定者:
      encode 在类中 io.netty.handler.codec.MessageToByteEncoder<Object>
      抛出:
      Exception
    • needZip

      public static boolean needZip​(com.google.protobuf.ByteString data)
    • getCompressData

      public static com.google.protobuf.ByteString getCompressData​(com.google.protobuf.ByteString data)