Home / Function/ grantedQoSLevels() — netty Function Reference

grantedQoSLevels() — netty Function Reference

Architecture documentation for the grantedQoSLevels() function in MqttSubAckPayload.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6db6e876_7bf9_5385_8822_5797eda41523["grantedQoSLevels()"]
  a253d873_d4c2_d3f4_be37_3a54b1d9fe63["MqttSubAckPayload"]
  6db6e876_7bf9_5385_8822_5797eda41523 -->|defined in| a253d873_d4c2_d3f4_be37_3a54b1d9fe63
  style 6db6e876_7bf9_5385_8822_5797eda41523 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttSubAckPayload.java lines 65–75

    public List<Integer> grantedQoSLevels() {
        List<Integer> qosLevels = new ArrayList<Integer>(reasonCodes.size());
        for (MqttReasonCodes.SubAck code: reasonCodes) {
            if ((code.byteValue() & 0xFF) > MqttQoS.EXACTLY_ONCE.value()) {
                qosLevels.add(MqttQoS.FAILURE.value());
            } else {
                qosLevels.add(code.byteValue() & 0xFF);
            }
        }
        return qosLevels;
    }

Domain

Subdomains

Frequently Asked Questions

What does grantedQoSLevels() do?
grantedQoSLevels() is a function in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttSubAckPayload.java.
Where is grantedQoSLevels() defined?
grantedQoSLevels() is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttSubAckPayload.java at line 65.

Analyze Your Own Codebase

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

Try Supermodel Free