public abstract class HintedReplayingDecoder<S>
extends io.netty.handler.codec.ByteToMessageDecoder
ReplayingDecoder which is hinted to not attempt decoding unless enough
bytes are read.
The decoder does not expect pass different message up the pipeline, this is a terminal read operation.| Modifier | Constructor and Description |
|---|---|
protected |
HintedReplayingDecoder()
Creates a new instance with no initial state (i.e:
null). |
protected |
HintedReplayingDecoder(S initialState)
Creates a new instance with the specified initial state.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
callDecode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> xxx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
checkpoint()
Stores the internal cumulative buffer's reader position.
|
protected void |
checkpoint(S state)
Stores the internal cumulative buffer's reader position and updates
the current decoder state.
|
protected S |
state()
Returns the current state of this decoder.
|
protected S |
state(S newState)
Sets the current state of this decoder.
|
actualReadableBytes, channelRead, channelReadComplete, decode, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharableprotected HintedReplayingDecoder()
null).protected HintedReplayingDecoder(S initialState)
protected void checkpoint()
protected void checkpoint(S state)
protected S state()
protected S state(S newState)
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.handler.codec.ByteToMessageDecoderExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.