Class Resp3Handler


public class Resp3Handler extends Resp3AuthHandler
  • Field Details

  • Method Details

    • setCache

      protected void setCache(org.infinispan.AdvancedCache<byte[],byte[]> cache)
      Overrides:
      setCache in class CacheRespRequestHandler
    • 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)
    • handleThrowable

      protected static void handleThrowable(ByteBufPool alloc, Throwable t)