BulkStringHeaderRedisMessage Class — netty Architecture
Architecture documentation for the BulkStringHeaderRedisMessage class in BulkStringHeaderRedisMessage.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 797c762c_4721_484d_e342_18da5af57738["BulkStringHeaderRedisMessage"] 732d4ca7_5e21_77e4_dc50_2fc7a0ab1151["BulkStringHeaderRedisMessage.java"] 797c762c_4721_484d_e342_18da5af57738 -->|defined in| 732d4ca7_5e21_77e4_dc50_2fc7a0ab1151 badf212f_b9c6_ed1a_0100_4b51a8fd6e17["BulkStringHeaderRedisMessage()"] 797c762c_4721_484d_e342_18da5af57738 -->|method| badf212f_b9c6_ed1a_0100_4b51a8fd6e17 a0b460f7_8a6b_2f64_8bb9_15e9e4007d65["bulkStringLength()"] 797c762c_4721_484d_e342_18da5af57738 -->|method| a0b460f7_8a6b_2f64_8bb9_15e9e4007d65 5e0fabd1_0f6c_1b90_f2c0_7d6bcf1d933a["isNull()"] 797c762c_4721_484d_e342_18da5af57738 -->|method| 5e0fabd1_0f6c_1b90_f2c0_7d6bcf1d933a
Relationship Graph
Source Code
codec-redis/src/main/java/io/netty/handler/codec/redis/BulkStringHeaderRedisMessage.java lines 23–55
@UnstableApi
public class BulkStringHeaderRedisMessage implements RedisMessage {
private final int bulkStringLength;
/**
* Creates a {@link BulkStringHeaderRedisMessage}.
*
* @param bulkStringLength follow content length.
*/
public BulkStringHeaderRedisMessage(int bulkStringLength) {
if (bulkStringLength <= 0) {
throw new RedisCodecException("bulkStringLength: " + bulkStringLength + " (expected: > 0)");
}
this.bulkStringLength = bulkStringLength;
}
/**
* Return {@code bulkStringLength} for this content.
*/
public final int bulkStringLength() {
return bulkStringLength;
}
/**
* Returns whether the content of this message is {@code null}.
*
* @return indicates whether the content of this message is {@code null}.
*/
public boolean isNull() {
return bulkStringLength == RedisConstants.NULL_VALUE;
}
}
Source
Frequently Asked Questions
What is the BulkStringHeaderRedisMessage class?
BulkStringHeaderRedisMessage is a class in the netty codebase, defined in codec-redis/src/main/java/io/netty/handler/codec/redis/BulkStringHeaderRedisMessage.java.
Where is BulkStringHeaderRedisMessage defined?
BulkStringHeaderRedisMessage is defined in codec-redis/src/main/java/io/netty/handler/codec/redis/BulkStringHeaderRedisMessage.java at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free