Home / Type/ PubRel Type — netty Architecture

PubRel Type — netty Architecture

Architecture documentation for the PubRel type/interface in MqttReasonCodes.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  97bc52e3_74bd_f5d5_a3c6_35fa1f1f73ee["PubRel"]
  c504338c_2902_e532_6aaa_70ad4dab253e["MqttReasonCodes.java"]
  97bc52e3_74bd_f5d5_a3c6_35fa1f1f73ee -->|defined in| c504338c_2902_e532_6aaa_70ad4dab253e
  style 97bc52e3_74bd_f5d5_a3c6_35fa1f1f73ee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java lines 247–283

    public enum PubRel {
        SUCCESS((byte) 0x00),
        PACKET_IDENTIFIER_NOT_FOUND((byte) 0x92);

        private static final PubRel[] VALUES;

        static {
            PubRel[] values = values();
            VALUES = new PubRel[147];
            for (PubRel 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;

        PubRel(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 PubRel valueOf(byte b) {
            return valueOfHelper(b, VALUES);
        }
    }

Frequently Asked Questions

What is the PubRel type?
PubRel is a type/interface in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java.
Where is PubRel defined?
PubRel is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java at line 247.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free