Home / Function/ generateNextId() — netty Function Reference

generateNextId() — netty Function Reference

Architecture documentation for the generateNextId() function in KQueueIoHandler.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  1e534e9f_8b22_00aa_747f_67b7cb133621["generateNextId()"]
  75a3ba71_0590_fec0_e352_8a91c916c5af["KQueueIoHandler"]
  1e534e9f_8b22_00aa_747f_67b7cb133621 -->|defined in| 75a3ba71_0590_fec0_e352_8a91c916c5af
  5c6f2faf_144e_8480_a4f1_576f0c398566["DefaultKqueueIoRegistration()"]
  5c6f2faf_144e_8480_a4f1_576f0c398566 -->|calls| 1e534e9f_8b22_00aa_747f_67b7cb133621
  style 1e534e9f_8b22_00aa_747f_67b7cb133621 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java lines 86–103

    private long generateNextId() {
        boolean reset = false;
        for (;;) {
            if (nextId == Long.MAX_VALUE) {
                if (reset) {
                    throw new IllegalStateException("All possible ids in use");
                }
                reset = true;
            }
            nextId++;
            if (nextId == KQUEUE_WAKE_UP_IDENT) {
                continue;
            }
            if (!registrations.containsKey(nextId)) {
                return nextId;
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does generateNextId() do?
generateNextId() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java.
Where is generateNextId() defined?
generateNextId() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java at line 86.
What calls generateNextId()?
generateNextId() is called by 1 function(s): DefaultKqueueIoRegistration.

Analyze Your Own Codebase

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

Try Supermodel Free