Home / Function/ contextShouldSendQueuedFramesWhenSet() — netty Function Reference

contextShouldSendQueuedFramesWhenSet() — netty Function Reference

Architecture documentation for the contextShouldSendQueuedFramesWhenSet() function in DefaultHttp2RemoteFlowControllerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bc876d3d_5779_94ca_7427_53cdf7222fdd["contextShouldSendQueuedFramesWhenSet()"]
  f8fd7697_92d4_6455_4dd8_09a33ac81a6f["DefaultHttp2RemoteFlowControllerTest"]
  bc876d3d_5779_94ca_7427_53cdf7222fdd -->|defined in| f8fd7697_92d4_6455_4dd8_09a33ac81a6f
  3a8492ba_178f_22a5_9eb6_dfa34ba2d102["initConnectionAndController()"]
  bc876d3d_5779_94ca_7427_53cdf7222fdd -->|calls| 3a8492ba_178f_22a5_9eb6_dfa34ba2d102
  136071dd_c92e_5482_7cb2_c1ba0769c1ab["FakeFlowControlled()"]
  bc876d3d_5779_94ca_7427_53cdf7222fdd -->|calls| 136071dd_c92e_5482_7cb2_c1ba0769c1ab
  4d627b61_f0ea_0927_043f_7bfb246d71d1["assertNotWritten()"]
  bc876d3d_5779_94ca_7427_53cdf7222fdd -->|calls| 4d627b61_f0ea_0927_043f_7bfb246d71d1
  947caffb_54ef_9984_108e_69119ef018d1["incrementWindowSize()"]
  bc876d3d_5779_94ca_7427_53cdf7222fdd -->|calls| 947caffb_54ef_9984_108e_69119ef018d1
  90444244_2b60_c843_559a_6c55d7a4e9ac["assertWritabilityChanged()"]
  bc876d3d_5779_94ca_7427_53cdf7222fdd -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac
  da0712d5_2b96_e340_6c7a_17114adb9efc["assertFullyWritten()"]
  bc876d3d_5779_94ca_7427_53cdf7222fdd -->|calls| da0712d5_2b96_e340_6c7a_17114adb9efc
  style bc876d3d_5779_94ca_7427_53cdf7222fdd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java lines 867–889

    @Test
    public void contextShouldSendQueuedFramesWhenSet() throws Exception {
        // Re-initialize the controller so we can ensure the context hasn't been set yet.
        initConnectionAndController();

        FakeFlowControlled dataA = new FakeFlowControlled(1);
        final Http2Stream stream = stream(STREAM_A);

        // Queue some frames
        controller.addFlowControlled(stream, dataA);
        dataA.assertNotWritten();

        controller.incrementWindowSize(stream, 100);
        dataA.assertNotWritten();

        assertWritabilityChanged(0, false);

        // Set the controller
        controller.channelHandlerContext(ctx);
        dataA.assertFullyWritten();

        assertWritabilityChanged(1, true);
    }

Domain

Subdomains

Frequently Asked Questions

What does contextShouldSendQueuedFramesWhenSet() do?
contextShouldSendQueuedFramesWhenSet() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java.
Where is contextShouldSendQueuedFramesWhenSet() defined?
contextShouldSendQueuedFramesWhenSet() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java at line 867.
What does contextShouldSendQueuedFramesWhenSet() call?
contextShouldSendQueuedFramesWhenSet() calls 6 function(s): FakeFlowControlled, assertFullyWritten, assertNotWritten, assertWritabilityChanged, incrementWindowSize, initConnectionAndController.

Analyze Your Own Codebase

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

Try Supermodel Free