Home / Function/ updateLocalWindowIfNeeded() — netty Function Reference

updateLocalWindowIfNeeded() — netty Function Reference

Architecture documentation for the updateLocalWindowIfNeeded() function in AbstractHttp2StreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  62a996f5_c8c1_0a8e_97ff_db08bcadbc89["updateLocalWindowIfNeeded()"]
  2656dcfe_5cdb_7c7d_bc25_312393fe2e05["Http2ChannelUnsafe"]
  62a996f5_c8c1_0a8e_97ff_db08bcadbc89 -->|defined in| 2656dcfe_5cdb_7c7d_bc25_312393fe2e05
  3a18b33a_f9a8_0622_5d3c_59bf383e0e3a["beginRead()"]
  3a18b33a_f9a8_0622_5d3c_59bf383e0e3a -->|calls| 62a996f5_c8c1_0a8e_97ff_db08bcadbc89
  4719f032_82eb_05bb_5db2_1ba1daf73d78["updateLocalWindowIfNeededAndFlush()"]
  4719f032_82eb_05bb_5db2_1ba1daf73d78 -->|calls| 62a996f5_c8c1_0a8e_97ff_db08bcadbc89
  a7768b47_c66a_4661_7c15_67b72fe39d9e["doRead0()"]
  a7768b47_c66a_4661_7c15_67b72fe39d9e -->|calls| 62a996f5_c8c1_0a8e_97ff_db08bcadbc89
  style 62a996f5_c8c1_0a8e_97ff_db08bcadbc89 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 913–921

        private boolean updateLocalWindowIfNeeded() {
            if (flowControlledBytes != 0 && !parentContext().isRemoved() && config.autoStreamFlowControl) {
                int bytes = flowControlledBytes;
                flowControlledBytes = 0;
                writeWindowUpdateFrame(new DefaultHttp2WindowUpdateFrame(bytes).stream(stream));
                return true;
            }
            return false;
        }

Domain

Subdomains

Frequently Asked Questions

What does updateLocalWindowIfNeeded() do?
updateLocalWindowIfNeeded() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java.
Where is updateLocalWindowIfNeeded() defined?
updateLocalWindowIfNeeded() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java at line 913.
What calls updateLocalWindowIfNeeded()?
updateLocalWindowIfNeeded() is called by 3 function(s): beginRead, doRead0, updateLocalWindowIfNeededAndFlush.

Analyze Your Own Codebase

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

Try Supermodel Free