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.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(Configuration configuration, OperationDispatcher dispatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addListener(byte[] listenerId)
     
    void
    channelActive(io.netty.channel.ChannelHandlerContext ctx)
     
    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)
     
    io.netty.channel.Channel
     
     
    boolean
     
    void
    refreshTimeout(HotRodOperation<?> op, long messageId)
     
     
    long
     
    void
    removeListener(byte[] listenerId)
     
    void
    setCodec(Codec codec)
     

    Methods inherited from class org.infinispan.client.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, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    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

    • getConfiguration

      public Configuration getConfiguration()
    • getChannel

      public io.netty.channel.Channel getChannel()
    • isSharable

      public boolean isSharable()
      Overrides:
      isSharable in class io.netty.channel.ChannelHandlerAdapter
    • registerOperation

      public long registerOperation(HotRodOperation<?> operation)
    • refreshTimeout

      public void refreshTimeout(HotRodOperation<?> op, long messageId)
    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • 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
    • setCodec

      public void setCodec(Codec codec)
    • 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) throws Exception
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class HintedReplayingDecoder<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 of HotRodOperation
      Overrides:
      checkpoint in class HintedReplayingDecoder<org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.State>
    • registeredOperationsById

      public Map<Long,HotRodOperation<?>> registeredOperationsById()
    • addListener

      public void addListener(byte[] listenerId)
    • removeListener

      public void removeListener(byte[] listenerId)