PubRec Type — netty Architecture
Architecture documentation for the PubRec type/interface in MqttReasonCodes.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 113f25ea_40e2_f447_e6be_1c759daa7e93["PubRec"] c504338c_2902_e532_6aaa_70ad4dab253e["MqttReasonCodes.java"] 113f25ea_40e2_f447_e6be_1c759daa7e93 -->|defined in| c504338c_2902_e532_6aaa_70ad4dab253e style 113f25ea_40e2_f447_e6be_1c759daa7e93 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java lines 199–242
public enum PubRec {
SUCCESS((byte) 0x00),
NO_MATCHING_SUBSCRIBERS((byte) 0x10),
UNSPECIFIED_ERROR((byte) 0x80),
IMPLEMENTATION_SPECIFIC_ERROR((byte) 0x83),
NOT_AUTHORIZED((byte) 0x87),
TOPIC_NAME_INVALID((byte) 0x90),
PACKET_IDENTIFIER_IN_USE((byte) 0x91),
QUOTA_EXCEEDED((byte) 0x97),
PAYLOAD_FORMAT_INVALID((byte) 0x99);
private static final PubRec[] VALUES;
static {
PubRec[] values = values();
VALUES = new PubRec[154];
for (PubRec 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;
PubRec(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 PubRec valueOf(byte b) {
return valueOfHelper(b, VALUES);
}
}
Source
Frequently Asked Questions
What is the PubRec type?
PubRec is a type/interface in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java.
Where is PubRec defined?
PubRec is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java at line 199.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free