Class HotRodDecoder

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.server.core.transport.RequestLimitDecoder
org.infinispan.server.hotrod.HotRodDecoder
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class HotRodDecoder extends RequestLimitDecoder
  • Field Details

    • log

      protected static final org.infinispan.server.core.logging.Log log
    • cacheManager

      protected final EmbeddedCacheManager cacheManager
    • executor

      protected final Executor executor
    • server

      protected final HotRodServer server
    • closing

      protected boolean closing
    • auth

      protected Authentication auth
    • cacheProcessor

      protected org.infinispan.server.hotrod.TransactionRequestProcessor cacheProcessor
    • counterProcessor

      protected org.infinispan.server.hotrod.CounterRequestProcessor counterProcessor
    • multimapProcessor

      protected org.infinispan.server.hotrod.MultimapRequestProcessor multimapProcessor
    • taskProcessor

      protected TaskRequestProcessor taskProcessor
  • Constructor Details

  • Method Details

    • getHeader

      protected HotRodHeader getHeader()
    • 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()
    • getExecutor

      public Executor getExecutor()
    • checkCacheReady

      protected String checkCacheReady(String cacheName)
    • handlerAdded

      public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      handlerAdded in interface io.netty.channel.ChannelHandler
      Overrides:
      handlerAdded in class io.netty.channel.ChannelHandlerAdapter
    • 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
    • channelWritabilityChanged

      public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelWritabilityChanged in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelWritabilityChanged in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable t)
      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
    • defaultExpiration

      protected int defaultExpiration(int duration, int flags, ProtocolFlag defaultFlag)
    • allocMap

      protected <K,V> Map<K,V> allocMap(io.netty.channel.Channel channel, int size)
      We usually know the size of the map ahead, and we want to return static empty map if we're not going to add anything.
    • allocList

      protected <T> List<T> allocList(io.netty.channel.Channel channel, int size)
    • allocSet

      protected <T> Set<T> allocSet(io.netty.channel.Channel channel, int size)