Home / Function/ nextVariableIndex() — netty Function Reference

nextVariableIndex() — netty Function Reference

Architecture documentation for the nextVariableIndex() function in InternalThreadLocalMap.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  64a3a443_69a7_62c8_b6cb_f813141aa05c["nextVariableIndex()"]
  d6ca0ae0_1399_e584_fef6_bfc2f1e3e146["InternalThreadLocalMap"]
  64a3a443_69a7_62c8_b6cb_f813141aa05c -->|defined in| d6ca0ae0_1399_e584_fef6_bfc2f1e3e146
  style 64a3a443_69a7_62c8_b6cb_f813141aa05c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/InternalThreadLocalMap.java lines 149–156

    public static int nextVariableIndex() {
        int index = nextIndex.getAndIncrement();
        if (index >= ARRAY_LIST_CAPACITY_MAX_SIZE || index < 0) {
            nextIndex.set(ARRAY_LIST_CAPACITY_MAX_SIZE);
            throw new IllegalStateException("too many thread-local indexed variables");
        }
        return index;
    }

Domain

Subdomains

Frequently Asked Questions

What does nextVariableIndex() do?
nextVariableIndex() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/InternalThreadLocalMap.java.
Where is nextVariableIndex() defined?
nextVariableIndex() is defined in common/src/main/java/io/netty/util/internal/InternalThreadLocalMap.java at line 149.

Analyze Your Own Codebase

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

Try Supermodel Free