Class HotRodClientDecoder

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.hotrod.impl.transport.netty.HotRodClientDecoder
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class HotRodClientDecoder extends io.netty.handler.codec.ByteToMessageDecoder
  • 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
    protected final HeaderDecoder
     
    static final io.netty.util.Signal
     
    protected static final org.infinispan.commons.logging.Log
     
    protected final CacheRequestProcessor
     

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

    COMPOSITE_CUMULATOR, MERGE_CUMULATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <T> List<T>
    allocList(int size)
     
    protected <K, V> Map<K,V>
    allocMap(int size)
     
    protected <T> Set<T>
    allocSet(int size)
     
    protected void
    callDecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)
     
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
     
    <T extends HotRodOperation<?>>
    T
     
    void
    decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> out)
     
    protected void
    delegateParsing(io.netty.buffer.ByteBuf buf, long messageId, short opCode, short status)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
     
    void
     
    protected boolean
    isHashDistributionAware(long messageId)
     
    boolean
     
    protected boolean
    operationResponseHasError(long messageId, short opCode)
     
    int
     
    void
    registerOperation(io.netty.channel.Channel channel, HotRodOperation<?> op)
     
    void
    removeListener(byte[] id)
     
    int
     
    void
    userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)
     

    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

    • log

      protected static final org.infinispan.commons.logging.Log log
    • DELEGATE

      public static final io.netty.util.Signal DELEGATE
    • delegate

      protected final HeaderDecoder delegate
    • responseHandler

      protected final CacheRequestProcessor responseHandler
  • Constructor Details

  • Method Details

    • decode

      public void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> out) throws Exception
      Specified by:
      decode in class io.netty.handler.codec.ByteToMessageDecoder
      Throws:
      Exception
    • requestBytes

      public int requestBytes()
    • 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
    • callDecode

      protected void callDecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)
      Overrides:
      callDecode in class io.netty.handler.codec.ByteToMessageDecoder
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class io.netty.handler.codec.ByteToMessageDecoder
      Throws:
      Exception
    • isSharable

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

      public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
      Specified by:
      userEventTriggered in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      userEventTriggered in class io.netty.handler.codec.ByteToMessageDecoder
      Throws:
      Exception
    • failoverClientListeners

      public void failoverClientListeners()
    • delegateParsing

      protected void delegateParsing(io.netty.buffer.ByteBuf buf, long messageId, short opCode, short status)
    • operationResponseHasError

      protected boolean operationResponseHasError(long messageId, short opCode)
    • removeListener

      public void removeListener(byte[] id)
    • isHashDistributionAware

      protected boolean isHashDistributionAware(long messageId)
    • registerOperation

      public void registerOperation(io.netty.channel.Channel channel, HotRodOperation<?> op)
    • registeredOperations

      public int registeredOperations()
    • current

      public <T extends HotRodOperation<?>> T current()
    • allocMap

      protected <K, V> Map<K,V> allocMap(int size)
    • allocList

      protected <T> List<T> allocList(int size)
    • allocSet

      protected <T> Set<T> allocSet(int size)