Home / Function/ nextStreamId() — netty Function Reference

nextStreamId() — netty Function Reference

Architecture documentation for the nextStreamId() function in QuicStreamIdGenerator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d899c888_b7db_6db1_ba17_b6b6973d0b88["nextStreamId()"]
  288e0499_aac8_dfdc_41fa_b1e1eb9fe81d["QuicStreamIdGenerator"]
  d899c888_b7db_6db1_ba17_b6b6973d0b88 -->|defined in| 288e0499_aac8_dfdc_41fa_b1e1eb9fe81d
  style d899c888_b7db_6db1_ba17_b6b6973d0b88 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicStreamIdGenerator.java lines 31–40

    long nextStreamId(boolean bidirectional) {
        if (bidirectional) {
            long stream = nextBidirectionalStreamId;
            nextBidirectionalStreamId += 4;
            return stream;
        }
        long stream = nextUnidirectionalStreamId;
        nextUnidirectionalStreamId += 4;
        return stream;
    }

Domain

Subdomains

Frequently Asked Questions

What does nextStreamId() do?
nextStreamId() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicStreamIdGenerator.java.
Where is nextStreamId() defined?
nextStreamId() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicStreamIdGenerator.java at line 31.

Analyze Your Own Codebase

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

Try Supermodel Free