Class HeaderDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder<org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.State>
org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class HeaderDecoder
extends HintedReplayingDecoder<org.infinispan.client.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 io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(byte[] listenerId) voidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidStores the internal cumulative buffer's reader position.protected voidvoidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) io.netty.channel.ChannelbooleanvoidrefreshTimeout(HotRodOperation<?> op, long messageId) Map<Long, HotRodOperation<?>> longregisterOperation(HotRodOperation<?> operation) voidremoveListener(byte[] listenerId) voidMethods inherited from class org.infinispan.client.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, setSingleDecode, userEventTriggeredMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
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
-
getConfiguration
-
getChannel
public io.netty.channel.Channel getChannel() -
isSharable
public boolean isSharable()- Overrides:
isSharablein classio.netty.channel.ChannelHandlerAdapter
-
registerOperation
-
refreshTimeout
-
channelActive
- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
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
-
setCodec
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classHintedReplayingDecoder<org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.State>- Throws:
Exception
-
checkpoint
public void checkpoint()Stores the internal cumulative buffer's reader position. Checkpoint is exposed for implementations ofHotRodOperation- Overrides:
checkpointin classHintedReplayingDecoder<org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.State>
-
registeredOperationsById
-
addListener
public void addListener(byte[] listenerId) -
removeListener
public void removeListener(byte[] listenerId)
-