Class BulkStringHeaderRedisMessage
java.lang.Object
io.netty.handler.codec.redis.BulkStringHeaderRedisMessage
- All Implemented Interfaces:
RedisMessage
The header of Bulk Strings in RESP.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkStringHeaderRedisMessage(int bulkStringLength) Creates aBulkStringHeaderRedisMessage. -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturnbulkStringLengthfor this content.booleanisNull()Returns whether the content of this message isnull.
-
Constructor Details
-
BulkStringHeaderRedisMessage
public BulkStringHeaderRedisMessage(int bulkStringLength) Creates aBulkStringHeaderRedisMessage.- Parameters:
bulkStringLength- follow content length.
-
-
Method Details
-
bulkStringLength
public final int bulkStringLength()ReturnbulkStringLengthfor this content. -
isNull
public boolean isNull()Returns whether the content of this message isnull.- Returns:
- indicates whether the content of this message is
null.
-