Class NettyTOMMessageEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToByteEncoder<TOMMessage>
-
- bftsmart.communication.client.netty.NettyTOMMessageEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
public class NettyTOMMessageEncoder extends io.netty.handler.codec.MessageToByteEncoder<TOMMessage>
-
-
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
-
-
-
-
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 classio.netty.handler.codec.MessageToByteEncoder<TOMMessage>
- Throws:
java.lang.Exception
-
-