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>
-
-
Constructor Summary
Constructors Constructor Description HeaderDecoder(OperationContext operationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(byte[] listenerId)CompletableFuture<Void>allCompleteFuture()voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidcheckpoint()Stores the internal cumulative buffer's reader position.protected voiddecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)voidfailoverClientListeners()booleanisSharable()intregisteredOperations()voidregisterOperation(io.netty.channel.Channel channel, HotRodOperation<?> operation)voidremoveListener(byte[] listenerId)voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)-
Methods inherited from class org.infinispan.hotrod.impl.transport.netty.HintedReplayingDecoder
callDecode, checkpoint, state, state
-
Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HeaderDecoder
public HeaderDecoder(OperationContext operationContext)
-
-
Method Detail
-
isSharable
public boolean isSharable()
- Overrides:
isSharablein classio.netty.channel.ChannelHandlerAdapter
-
registerOperation
public void registerOperation(io.netty.channel.Channel channel, HotRodOperation<?> operation)
-
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
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)- 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>
-
failoverClientListeners
public void failoverClientListeners()
-
allCompleteFuture
public CompletableFuture<Void> allCompleteFuture()
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)- 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)
-
-