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.Cumulator

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class io.netty.handler.codec.ByteToMessageDecoder

    COMPOSITE_CUMULATOR, MERGE_CUMULATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    HeaderDecoder(OperationContext operationContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addListener(byte[] listenerId)
     
     
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    Stores the internal cumulative buffer's reader position.
    protected void
    decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
     
    void
     
    boolean
     
    int
     
    void
    registerOperation(io.netty.channel.Channel channel, HotRodOperation<?> operation)
     
    void
    removeListener(byte[] listenerId)
     
    void
    userEventTriggered(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

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler

    handlerAdded
  • Field Details

  • Constructor Details

  • Method Details

    • isSharable

      public boolean isSharable()
      Overrides:
      isSharable in class io.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:
      decode in class io.netty.handler.codec.ByteToMessageDecoder
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class HintedReplayingDecoder<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:
      userEventTriggered in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      userEventTriggered in class io.netty.handler.codec.ByteToMessageDecoder
    • checkpoint

      public void checkpoint()
      Stores the internal cumulative buffer's reader position. Checkpoint is exposed for implementations of HotRodOperation
      Overrides:
      checkpoint in class HintedReplayingDecoder<org.infinispan.hotrod.impl.transport.netty.HeaderDecoder.State>
    • registeredOperations

      public int registeredOperations()
    • addListener

      public void addListener(byte[] listenerId)
    • removeListener

      public void removeListener(byte[] listenerId)