public class RntbdContextRequestDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
| Constructor and Description |
|---|
RntbdContextRequestDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext context,
Object message)
Prepare for decoding an @{link RntbdContextRequest} or fire a channel readTree event to pass the input message along
|
protected void |
decode(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf in,
List<Object> out)
Decode an RntbdContextRequest from an
ByteBuf stream |
actualReadableBytes, callDecode, channelInactive, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharablepublic void channelRead(io.netty.channel.ChannelHandlerContext context,
Object message)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.handler.codec.ByteToMessageDecodercontext - the ChannelHandlerContext which this ByteToMessageDecoder belongs tomessage - the message to be decodedException - thrown if an error occursprotected void decode(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf in,
List<Object> out)
throws IllegalStateException
ByteBuf stream
This method will be called till either an input ByteBuf has nothing to readTree on return from this method or
till nothing is readTree from the input ByteBuf.
decode in class io.netty.handler.codec.ByteToMessageDecodercontext - the ChannelHandlerContext which this ByteToMessageDecoder belongs toin - the ByteBuf from which to readTree dataout - the List to which decoded messages should be addedIllegalStateException - thrown if an error occursCopyright © 2020. All rights reserved.