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