Class Resp3Handler


public class Resp3Handler extends Resp3AuthHandler
  • Field Details

    • ignorePreviousValueCache

      protected org.infinispan.AdvancedCache<byte[],byte[]> ignorePreviousValueCache
    • listMultimap

      protected org.infinispan.multimap.impl.EmbeddedMultimapListCache<byte[],byte[]> listMultimap
    • mapMultimap

      protected org.infinispan.multimap.impl.EmbeddedMultimapPairCache<byte[],byte[],byte[]> mapMultimap
    • embeddedSetCache

      protected org.infinispan.multimap.impl.EmbeddedSetCache<byte[],byte[]> embeddedSetCache
    • sortedSetMultimap

      protected org.infinispan.multimap.impl.EmbeddedMultimapSortedSetCache<byte[],byte[]> sortedSetMultimap
    • scheduler

      protected final ScheduledExecutorService scheduler
    • blockingManager

      protected final org.infinispan.util.concurrent.BlockingManager blockingManager
  • Method Details

    • setCache

      public void setCache(org.infinispan.AdvancedCache<byte[],byte[]> cache)
      Overrides:
      setCache in class CacheRespRequestHandler
    • getListMultimap

      public org.infinispan.multimap.impl.EmbeddedMultimapListCache<byte[],byte[]> getListMultimap()
    • getHashMapMultimap

      public org.infinispan.multimap.impl.EmbeddedMultimapPairCache<byte[],byte[],byte[]> getHashMapMultimap()
    • getEmbeddedSetCache

      public org.infinispan.multimap.impl.EmbeddedSetCache<byte[],byte[]> getEmbeddedSetCache()
    • getSortedSeMultimap

      public org.infinispan.multimap.impl.EmbeddedMultimapSortedSetCache<byte[],byte[]> getSortedSeMultimap()
    • getScheduler

      public ScheduledExecutorService getScheduler()
    • getBlockingManager

      public org.infinispan.util.concurrent.BlockingManager getBlockingManager()
    • actualHandleRequest

      protected CompletionStage<RespRequestHandler> actualHandleRequest(io.netty.channel.ChannelHandlerContext ctx, RespCommand type, List<byte[]> arguments)
      Description copied from class: RespRequestHandler
      Handles the RESP request returning a stage that when complete notifies the command has completed as well as providing the request handler for subsequent commands.

      Implementations should never use the ByteBufAllocator in the context. Instead, they should use RespRequestHandler.allocatorToUse to retrieve a ByteBuffer. This ByteBuffer should only have bytes written to it adding up to the size requested. The ByteBuffer itself should never be written to the context or channel and flush should also never be invoked. Failure to do so may cause mis-ordering or responses as requests support pipelining and a ByteBuf may not be send down stream until later in the pipeline.

      Overrides:
      actualHandleRequest in class Resp3AuthHandler
      Parameters:
      ctx - Netty context pipeline for this request
      type - The command type
      arguments - The remaining arguments to the command
      Returns:
      stage that when complete returns the new handler to instate. This stage must be completed on the event loop
    • handleLongResult

      protected static void handleLongResult(Long result, ByteBufPool alloc)
    • handleDoubleResult

      protected static void handleDoubleResult(Double result, ByteBufPool alloc)
    • handleCollectionDoubleResult

      protected static void handleCollectionDoubleResult(Collection<Double> collection, ByteBufPool alloc)
    • handleCollectionLongResult

      protected static void handleCollectionLongResult(Collection<Long> collection, ByteBufPool alloc)
    • handleBulkResult

      public static void handleBulkResult(CharSequence result, ByteBufPool alloc)
    • handleBulkAsciiResult

      public static void handleBulkAsciiResult(CharSequence result, ByteBufPool alloc)
    • handleCollectionBulkResult

      public static void handleCollectionBulkResult(Collection<byte[]> collection, ByteBufPool alloc)
    • handleBulkResult

      protected static void handleBulkResult(byte[] result, ByteBufPool alloc)
    • handleThrowable

      protected static void handleThrowable(ByteBufPool alloc, Throwable t)
    • ignorePreviousValuesCache

      public org.infinispan.AdvancedCache<byte[],byte[]> ignorePreviousValuesCache()
    • delegate

      public CompletionStage<RespRequestHandler> delegate(io.netty.channel.ChannelHandlerContext ctx, RespCommand command, List<byte[]> arguments)
    • checkPermission

      public void checkPermission(org.infinispan.security.AuthorizationPermission authorizationPermission)
    • writeArrayPrefix

      public static void writeArrayPrefix(int size, ByteBufPool alloc)
    • writeMapPrefix

      public static void writeMapPrefix(int size, ByteBufPool alloc)