PubComp Type — netty Architecture
Architecture documentation for the PubComp type/interface in MqttReasonCodes.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2825144f_f4e5_97dc_8ddb_0b0d5393cc5f["PubComp"] c504338c_2902_e532_6aaa_70ad4dab253e["MqttReasonCodes.java"] 2825144f_f4e5_97dc_8ddb_0b0d5393cc5f -->|defined in| c504338c_2902_e532_6aaa_70ad4dab253e style 2825144f_f4e5_97dc_8ddb_0b0d5393cc5f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java lines 288–324
public enum PubComp {
SUCCESS((byte) 0x00),
PACKET_IDENTIFIER_NOT_FOUND((byte) 0x92);
private static final PubComp[] VALUES;
static {
PubComp[] values = values();
VALUES = new PubComp[147];
for (PubComp code : values) {
final int unsignedByte = code.byteValue & 0xFF;
// Suppress a warning about out of bounds access since the enum contains only correct values
VALUES[unsignedByte] = code; // [java/index-out-of-bounds]
}
}
private final byte byteValue;
PubComp(byte byteValue) {
this.byteValue = byteValue;
}
/**
* @return the value number corresponding to the constant.
* */
public byte byteValue() {
return byteValue;
}
/**
* @param b the number to decode.
* @return the enum value corresponding to the number.
* */
public static PubComp valueOf(byte b) {
return valueOfHelper(b, VALUES);
}
}
Source
Frequently Asked Questions
What is the PubComp type?
PubComp is a type/interface in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java.
Where is PubComp defined?
PubComp is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java at line 288.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free