MqttMessageType Type — netty Architecture
Architecture documentation for the MqttMessageType type/interface in MqttMessageType.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 37e4fb40_7f39_ba9d_0311_3557dfcb5ce0["MqttMessageType"] c329f228_d5f4_f36c_c656_b871a225a71e["MqttMessageType.java"] 37e4fb40_7f39_ba9d_0311_3557dfcb5ce0 -->|defined in| c329f228_d5f4_f36c_c656_b871a225a71e style 37e4fb40_7f39_ba9d_0311_3557dfcb5ce0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttMessageType.java lines 22–71
public enum MqttMessageType {
CONNECT(1),
CONNACK(2),
PUBLISH(3),
PUBACK(4),
PUBREC(5),
PUBREL(6),
PUBCOMP(7),
SUBSCRIBE(8),
SUBACK(9),
UNSUBSCRIBE(10),
UNSUBACK(11),
PINGREQ(12),
PINGRESP(13),
DISCONNECT(14),
AUTH(15);
private static final MqttMessageType[] VALUES;
static {
// this prevent values to be assigned with the wrong order
// and ensure valueOf to work fine
final MqttMessageType[] values = values();
VALUES = new MqttMessageType[values.length + 1];
for (MqttMessageType mqttMessageType : values) {
final int value = mqttMessageType.value;
if (VALUES[value] != null) {
throw new AssertionError("value already in use: " + value);
}
VALUES[value] = mqttMessageType;
}
}
private final int value;
MqttMessageType(int value) {
this.value = value;
}
public int value() {
return value;
}
public static MqttMessageType valueOf(int type) {
if (type <= 0 || type >= VALUES.length) {
throw new IllegalArgumentException("unknown message type: " + type);
}
return VALUES[type];
}
}
Source
Frequently Asked Questions
What is the MqttMessageType type?
MqttMessageType is a type/interface in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttMessageType.java.
Where is MqttMessageType defined?
MqttMessageType is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttMessageType.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free