lastStreamCreated() — netty Function Reference
Architecture documentation for the lastStreamCreated() function in DefaultHttp2Connection.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8b6696d4_4d1c_a51b_a833_e73360f261a3["lastStreamCreated()"] 4fff0ad9_a79c_4bdb_3e93_54ee4440ca84["DefaultEndpoint"] 8b6696d4_4d1c_a51b_a833_e73360f261a3 -->|defined in| 4fff0ad9_a79c_4bdb_3e93_54ee4440ca84 dd504b42_7fd8_c9e4_7833_8863cdffb657["mayHaveCreatedStream()"] dd504b42_7fd8_c9e4_7833_8863cdffb657 -->|calls| 8b6696d4_4d1c_a51b_a833_e73360f261a3 style 8b6696d4_4d1c_a51b_a833_e73360f261a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java lines 873–880
@Override
public int lastStreamCreated() {
// Stream ids are always incremented by 2 so just subtract it. This is even ok in the case
// of nextStreamIdToCreate overflown as it will just return the correct positive number.
// Use max(...) to ensure we return the correct value for the case when its a client and no stream
// was created yet.
return Math.max(0, nextStreamIdToCreate - 2);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does lastStreamCreated() do?
lastStreamCreated() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java.
Where is lastStreamCreated() defined?
lastStreamCreated() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java at line 873.
What calls lastStreamCreated()?
lastStreamCreated() is called by 1 function(s): mayHaveCreatedStream.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free