Class BulkStringHeaderRedisMessage

java.lang.Object
io.netty.handler.codec.redis.BulkStringHeaderRedisMessage
All Implemented Interfaces:
RedisMessage

@UnstableApi public class BulkStringHeaderRedisMessage extends Object implements RedisMessage
The header of Bulk Strings in RESP.
  • Field Details

    • bulkStringLength

      private final int bulkStringLength
  • Constructor Details

    • BulkStringHeaderRedisMessage

      public BulkStringHeaderRedisMessage(int bulkStringLength)
      Parameters:
      bulkStringLength - follow content length.
  • Method Details

    • bulkStringLength

      public final int bulkStringLength()
      Return bulkStringLength for this content.
    • isNull

      public boolean isNull()
      Returns whether the content of this message is null.
      Returns:
      indicates whether the content of this message is null.