Home / Function/ writeWindowUpdateIfNeeded() — netty Function Reference

writeWindowUpdateIfNeeded() — netty Function Reference

Architecture documentation for the writeWindowUpdateIfNeeded() function in DefaultHttp2LocalFlowController.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 3

Entity Profile

Dependency Diagram

graph TD
  03837159_529f_3d31_e83d_d29893d9aba0["writeWindowUpdateIfNeeded()"]
  45d84eff_651d_e7b2_c74b_baa69a4b9a46["DefaultState"]
  03837159_529f_3d31_e83d_d29893d9aba0 -->|defined in| 45d84eff_651d_e7b2_c74b_baa69a4b9a46
  8f5c83ec_a0ba_8175_a92b_575a502628da["incrementWindowSize()"]
  8f5c83ec_a0ba_8175_a92b_575a502628da -->|calls| 03837159_529f_3d31_e83d_d29893d9aba0
  8e7edab7_3878_e374_7f64_d7a626dff93d["windowUpdateRatio()"]
  8e7edab7_3878_e374_7f64_d7a626dff93d -->|calls| 03837159_529f_3d31_e83d_d29893d9aba0
  a8ec61e3_3bd1_b8ce_6ec2_534b49608d0a["consumeBytes()"]
  a8ec61e3_3bd1_b8ce_6ec2_534b49608d0a -->|calls| 03837159_529f_3d31_e83d_d29893d9aba0
  fafdcd3b_e1ac_f571_9e49_4a4678015b65["isClosed()"]
  03837159_529f_3d31_e83d_d29893d9aba0 -->|calls| fafdcd3b_e1ac_f571_9e49_4a4678015b65
  9ca0a34c_02f9_c869_dea6_ba39b78b7959["writeWindowUpdate()"]
  03837159_529f_3d31_e83d_d29893d9aba0 -->|calls| 9ca0a34c_02f9_c869_dea6_ba39b78b7959
  style 03837159_529f_3d31_e83d_d29893d9aba0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java lines 452–466

        @Override
        public boolean writeWindowUpdateIfNeeded() throws Http2Exception {
            if (endOfStream || initialStreamWindowSize <= 0 ||
                    // If the stream is already closed there is no need to try to write a window update for it.
                    isClosed(stream)) {
                return false;
            }

            int threshold = (int) (initialStreamWindowSize * streamWindowUpdateRatio);
            if (processedWindow <= threshold) {
                writeWindowUpdate();
                return true;
            }
            return false;
        }

Domain

Subdomains

Frequently Asked Questions

What does writeWindowUpdateIfNeeded() do?
writeWindowUpdateIfNeeded() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java.
Where is writeWindowUpdateIfNeeded() defined?
writeWindowUpdateIfNeeded() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java at line 452.
What does writeWindowUpdateIfNeeded() call?
writeWindowUpdateIfNeeded() calls 2 function(s): isClosed, writeWindowUpdate.
What calls writeWindowUpdateIfNeeded()?
writeWindowUpdateIfNeeded() is called by 3 function(s): consumeBytes, incrementWindowSize, windowUpdateRatio.

Analyze Your Own Codebase

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

Try Supermodel Free