Class HeaderDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.hotrod.impl.transport.netty.HintedReplayingDecoder<org.infinispan.hotrod.impl.transport.netty.HeaderDecoder.State>
org.infinispan.hotrod.impl.transport.netty.HeaderDecoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class HeaderDecoder
extends HintedReplayingDecoder<org.infinispan.hotrod.impl.transport.netty.HeaderDecoder.State>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoder
io.netty.handler.codec.ByteToMessageDecoder.CumulatorNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsFields inherited from class org.infinispan.hotrod.impl.transport.netty.HintedReplayingDecoder
REPLAYFields inherited from class io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(byte[] listenerId) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidStores the internal cumulative buffer's reader position.protected voidvoidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voidprotected booleanbooleanvoidloadCurrent(long messageId) intvoidregisterOperation(io.netty.channel.Channel channel, HotRodOperation<?> operation) voidremoveListener(byte[] listenerId) protected voidresumeOperation(io.netty.buffer.ByteBuf buf, long messageId, short opCode, short status) voidtryCompleteExceptionally(long messageId, Throwable t) voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class org.infinispan.hotrod.impl.transport.netty.HintedReplayingDecoder
callDecode, checkpoint, state, stateMethods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecodeMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAddedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
HeaderDecoder
-
-
Method Details
-
isSharable
public boolean isSharable()- Overrides:
isSharablein classio.netty.channel.ChannelHandlerAdapter
-
registerOperation
-
tryCompleteExceptionally
-
decode
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out) - Specified by:
decodein classio.netty.handler.codec.ByteToMessageDecoder
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classHintedReplayingDecoder<org.infinispan.hotrod.impl.transport.netty.HeaderDecoder.State>
-
resumeOperation
protected void resumeOperation(io.netty.buffer.ByteBuf buf, long messageId, short opCode, short status) -
isHandlingMessage
protected boolean isHandlingMessage()- Specified by:
isHandlingMessagein classHintedReplayingDecoder<org.infinispan.hotrod.impl.transport.netty.HeaderDecoder.State>
-
loadCurrent
public void loadCurrent(long messageId) -
failoverClientListeners
public void failoverClientListeners() -
allCompleteFuture
-
userEventTriggered
- Specified by:
userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggeredin classio.netty.handler.codec.ByteToMessageDecoder
-
checkpoint
public void checkpoint()Stores the internal cumulative buffer's reader position. Checkpoint is exposed for implementations ofHotRodOperation- Overrides:
checkpointin classHintedReplayingDecoder<org.infinispan.hotrod.impl.transport.netty.HeaderDecoder.State>
-
registeredOperations
public int registeredOperations() -
addListener
public void addListener(byte[] listenerId) -
removeListener
public void removeListener(byte[] listenerId)
-