public final class RntbdRequestEncoder
extends io.netty.handler.codec.MessageToByteEncoder
| Constructor and Description |
|---|
RntbdRequestEncoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(Object message)
Returns
true if the given message is an @{link RntbdRequest} instance |
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
Object 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 @{link RntbdRequest} instance
If false this message should be passed to the next ChannelOutboundHandler in the pipeline.
acceptOutboundMessage in class io.netty.handler.codec.MessageToByteEncodermessage - the message to encodetrue, if the given message is an an RntbdRequest instance; otherwise @{false}protected void encode(io.netty.channel.ChannelHandlerContext context,
Object message,
io.netty.buffer.ByteBuf out)
throws Exception
ByteBuf
This method will be called for each message that can be written by this encoder.
encode in class io.netty.handler.codec.MessageToByteEncodercontext - the ChannelHandlerContext which this MessageToByteEncoder belongs encodemessage - the message to encodeout - the ByteBuf into which the encoded message will be writtenExceptionCopyright © 2020. All rights reserved.