public final class RntbdRequestEncoder extends io.netty.handler.codec.MessageToByteEncoder<RntbdRequestRecord>
| Constructor and Description |
|---|
RntbdRequestEncoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(Object message)
Returns
true if the given message is an RntbdRequestRecord instance. |
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
RntbdRequestRecord message,
io.netty.buffer.ByteBuf out)
Encode a message into a
ByteBuf |
allocateBuffer, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic boolean acceptOutboundMessage(Object message)
true if the given message is an RntbdRequestRecord instance.
If false this message should be passed to the next ChannelOutboundHandler in the pipeline.
acceptOutboundMessage in class io.netty.handler.codec.MessageToByteEncoder<RntbdRequestRecord>message - the message to encodetrue, if the given message is an an RntbdRequestRecord instance; otherwise false.protected void encode(io.netty.channel.ChannelHandlerContext context,
RntbdRequestRecord message,
io.netty.buffer.ByteBuf out)
ByteBuf
This method will be called for each message that can be written by this encoder.
encode in class io.netty.handler.codec.MessageToByteEncoder<RntbdRequestRecord>context - the ChannelHandlerContext which this MessageToByteEncoder belongs encodemessage - the message to encodeout - the ByteBuf into which the encoded message will be writtenCopyright © 2020. All rights reserved.