Home / Type/ SubAck Type — netty Architecture

SubAck Type — netty Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java lines 329–375

    public enum SubAck {
        GRANTED_QOS_0((byte) 0x00),
        GRANTED_QOS_1((byte) 0x01),
        GRANTED_QOS_2((byte) 0x02),
        UNSPECIFIED_ERROR((byte) 0x80),
        IMPLEMENTATION_SPECIFIC_ERROR((byte) 0x83),
        NOT_AUTHORIZED((byte) 0x87),
        TOPIC_FILTER_INVALID((byte) 0x8F),
        PACKET_IDENTIFIER_IN_USE((byte) 0x91),
        QUOTA_EXCEEDED((byte) 0x97),
        SHARED_SUBSCRIPTIONS_NOT_SUPPORTED((byte) 0x9E),
        SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED((byte) 0xA1),
        WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED((byte) 0xA2);

        private static final SubAck[] VALUES;

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

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

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free