Home / Function/ initialWindowSize() — netty Function Reference

initialWindowSize() — netty Function Reference

Architecture documentation for the initialWindowSize() function in DefaultHttp2RemoteFlowController.java from the netty codebase.

Function java Buffer Allocators calls 5 called by 2

Entity Profile

Dependency Diagram

graph TD
  4726301f_0167_8ad7_ccda_f3c46efe04f9["initialWindowSize()"]
  095a31fa_5eda_a3b5_9421_f6a5ba1d388c["WritabilityMonitor"]
  4726301f_0167_8ad7_ccda_f3c46efe04f9 -->|defined in| 095a31fa_5eda_a3b5_9421_f6a5ba1d388c
  54fb3605_e31c_9270_8325_8b86d27689a6["initialWindowSize()"]
  54fb3605_e31c_9270_8325_8b86d27689a6 -->|calls| 4726301f_0167_8ad7_ccda_f3c46efe04f9
  70f98aaa_d88c_9c64_6989_6eebed973749["initialWindowSize()"]
  70f98aaa_d88c_9c64_6989_6eebed973749 -->|calls| 4726301f_0167_8ad7_ccda_f3c46efe04f9
  f4481c02_b39e_6955_b587_9b592b23fdc8["visit()"]
  4726301f_0167_8ad7_ccda_f3c46efe04f9 -->|calls| f4481c02_b39e_6955_b587_9b592b23fdc8
  03b175d5_44cf_3343_f379_b5f478f70548["incrementStreamWindow()"]
  4726301f_0167_8ad7_ccda_f3c46efe04f9 -->|calls| 03b175d5_44cf_3343_f379_b5f478f70548
  83a67fd1_f569_c827_44d6_d6628e2fb4fc["isChannelWritable()"]
  4726301f_0167_8ad7_ccda_f3c46efe04f9 -->|calls| 83a67fd1_f569_c827_44d6_d6628e2fb4fc
  70f98aaa_d88c_9c64_6989_6eebed973749["initialWindowSize()"]
  4726301f_0167_8ad7_ccda_f3c46efe04f9 -->|calls| 70f98aaa_d88c_9c64_6989_6eebed973749
  1b91d5a0_59ed_e138_1c7d_a8c48586e1ad["writePendingBytes()"]
  4726301f_0167_8ad7_ccda_f3c46efe04f9 -->|calls| 1b91d5a0_59ed_e138_1c7d_a8c48586e1ad
  style 4726301f_0167_8ad7_ccda_f3c46efe04f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java lines 636–653

        void initialWindowSize(int newWindowSize) throws Http2Exception {
            checkPositiveOrZero(newWindowSize, "newWindowSize");

            final int delta = newWindowSize - initialWindowSize;
            initialWindowSize = newWindowSize;
            connection.forEachActiveStream(new Http2StreamVisitor() {
                @Override
                public boolean visit(Http2Stream stream) throws Http2Exception {
                    state(stream).incrementStreamWindow(delta);
                    return true;
                }
            });

            if (delta > 0 && isChannelWritable()) {
                // The window size increased, send any pending frames for all streams.
                writePendingBytes();
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does initialWindowSize() do?
initialWindowSize() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java.
Where is initialWindowSize() defined?
initialWindowSize() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java at line 636.
What does initialWindowSize() call?
initialWindowSize() calls 5 function(s): incrementStreamWindow, initialWindowSize, isChannelWritable, visit, writePendingBytes.
What calls initialWindowSize()?
initialWindowSize() is called by 2 function(s): initialWindowSize, initialWindowSize.

Analyze Your Own Codebase

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

Try Supermodel Free