Class RedisDecoder

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

@UnstableApi public final class RedisDecoder extends ByteToMessageDecoder
Decodes the Redis protocol into RedisMessage objects following RESP (REdis Serialization Protocol). RedisMessage parts can be aggregated to RedisMessage using RedisArrayAggregator or processed directly.
  • Field Details

  • Constructor Details

    • RedisDecoder

      public RedisDecoder()
      Creates a new instance with default maxInlineMessageLength and messagePool and inline command decoding disabled.
    • RedisDecoder

      public RedisDecoder(boolean decodeInlineCommands)
      Creates a new instance with default maxInlineMessageLength and messagePool.
      Parameters:
      decodeInlineCommands - if true, inline commands will be decoded.
    • RedisDecoder

      public RedisDecoder(int maxInlineMessageLength, RedisMessagePool messagePool)
      Creates a new instance with inline command decoding disabled.
      Parameters:
      maxInlineMessageLength - the maximum length of inline message.
      messagePool - the predefined message pool.
    • RedisDecoder

      public RedisDecoder(int maxInlineMessageLength, RedisMessagePool messagePool, boolean decodeInlineCommands)
      Creates a new instance.
      Parameters:
      maxInlineMessageLength - the maximum length of inline message.
      messagePool - the predefined message pool.
      decodeInlineCommands - if true, inline commands will be decoded.
  • Method Details