Class NettyTOMMessageEncoder

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelOutboundHandler

    public class NettyTOMMessageEncoder
    extends io.netty.handler.codec.MessageToByteEncoder<TOMMessage>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Summary

      Constructors 
      Constructor Description
      NettyTOMMessageEncoder​(boolean isClient, java.util.concurrent.ConcurrentHashMap<java.lang.Integer,​NettyClientServerSession> sessionTable, java.util.concurrent.locks.ReentrantReadWriteLock rl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void encode​(io.netty.channel.ChannelHandlerContext context, TOMMessage sm, io.netty.buffer.ByteBuf buffer)  
      • Methods inherited from class io.netty.handler.codec.MessageToByteEncoder

        acceptOutboundMessage, allocateBuffer, isPreferDirect, write
      • Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter

        bind, close, connect, deregister, disconnect, flush, read
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.netty.channel.ChannelHandler

        exceptionCaught, handlerAdded, handlerRemoved
    • Constructor Detail

      • NettyTOMMessageEncoder

        public NettyTOMMessageEncoder​(boolean isClient,
                                      java.util.concurrent.ConcurrentHashMap<java.lang.Integer,​NettyClientServerSession> sessionTable,
                                      java.util.concurrent.locks.ReentrantReadWriteLock rl)
    • Method Detail

      • encode

        protected void encode​(io.netty.channel.ChannelHandlerContext context,
                              TOMMessage sm,
                              io.netty.buffer.ByteBuf buffer)
                       throws java.lang.Exception
        Specified by:
        encode in class io.netty.handler.codec.MessageToByteEncoder<TOMMessage>
        Throws:
        java.lang.Exception