Home / Type/ UnsubAck Type — netty Architecture

UnsubAck Type — netty Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java lines 380–421

    public enum UnsubAck {
        SUCCESS((byte) 0x00),
        NO_SUBSCRIPTION_EXISTED((byte) 0x11),
        UNSPECIFIED_ERROR((byte) 0x80),
        IMPLEMENTATION_SPECIFIC_ERROR((byte) 0x83),
        NOT_AUTHORIZED((byte) 0x87),
        TOPIC_FILTER_INVALID((byte) 0x8F),
        PACKET_IDENTIFIER_IN_USE((byte) 0x91);

        private static final UnsubAck[] VALUES;

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

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

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free