Home / Function/ MqttMessageType() — netty Function Reference

MqttMessageType() — netty Function Reference

Architecture documentation for the MqttMessageType() function in MqttMessageTypeValueOfBench.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  431379bf_b14c_0cfb_730d_ae97ca717af5["MqttMessageType()"]
  3f0c5152_ddca_ab19_ed41_24e04c995cda["MqttMessageTypeValueOfBench"]
  431379bf_b14c_0cfb_730d_ae97ca717af5 -->|defined in| 3f0c5152_ddca_ab19_ed41_24e04c995cda
  style 431379bf_b14c_0cfb_730d_ae97ca717af5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/mqtt/MqttMessageTypeValueOfBench.java lines 96–103

    @Benchmark
    public MqttMessageType getViaArray() {
        long next = this.next;
        int nextIndex = (int) (next & mask);
        MqttMessageType type = MqttMessageType.valueOf(types[nextIndex]);
        this.next = next + 1;
        return type;
    }

Domain

Subdomains

Frequently Asked Questions

What does MqttMessageType() do?
MqttMessageType() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/mqtt/MqttMessageTypeValueOfBench.java.
Where is MqttMessageType() defined?
MqttMessageType() is defined in microbench/src/main/java/io/netty/handler/codec/mqtt/MqttMessageTypeValueOfBench.java at line 96.

Analyze Your Own Codebase

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

Try Supermodel Free