successiveSendsShouldNotInteract() — netty Function Reference
Architecture documentation for the successiveSendsShouldNotInteract() function in DefaultHttp2RemoteFlowControllerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 16f39ce8_0699_4fca_17de_f6237b24d4f8["successiveSendsShouldNotInteract()"] f8fd7697_92d4_6455_4dd8_09a33ac81a6f["DefaultHttp2RemoteFlowControllerTest"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|defined in| f8fd7697_92d4_6455_4dd8_09a33ac81a6f 947caffb_54ef_9984_108e_69119ef018d1["incrementWindowSize()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| 947caffb_54ef_9984_108e_69119ef018d1 72f6527f_6737_5bc4_f643_b308fe4de273["window()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| 72f6527f_6737_5bc4_f643_b308fe4de273 90444244_2b60_c843_559a_6c55d7a4e9ac["assertWritabilityChanged()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac 136071dd_c92e_5482_7cb2_c1ba0769c1ab["FakeFlowControlled()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| 136071dd_c92e_5482_7cb2_c1ba0769c1ab 85ffafbd_47aa_f4f5_fd02_71f26d692e10["sendData()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| 85ffafbd_47aa_f4f5_fd02_71f26d692e10 4d627b61_f0ea_0927_043f_7bfb246d71d1["assertNotWritten()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| 4d627b61_f0ea_0927_043f_7bfb246d71d1 d7bb96bf_47aa_9ae7_f5a1_7aaad102fb27["assertPartiallyWritten()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| d7bb96bf_47aa_9ae7_f5a1_7aaad102fb27 da0712d5_2b96_e340_6c7a_17114adb9efc["assertFullyWritten()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| da0712d5_2b96_e340_6c7a_17114adb9efc style 16f39ce8_0699_4fca_17de_f6237b24d4f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java lines 342–386
@Test
public void successiveSendsShouldNotInteract() throws Http2Exception {
// Collapse the connection window to force queueing.
incrementWindowSize(CONNECTION_STREAM_ID, -window(CONNECTION_STREAM_ID));
assertEquals(0, window(CONNECTION_STREAM_ID));
assertWritabilityChanged(1, false);
reset(listener);
FakeFlowControlled dataA = new FakeFlowControlled(10);
// Queue data for stream A and allow most of it to be written.
sendData(STREAM_A, dataA);
controller.writePendingBytes();
dataA.assertNotWritten();
incrementWindowSize(CONNECTION_STREAM_ID, 8);
assertWritabilityChanged(0, false);
reset(listener);
controller.writePendingBytes();
dataA.assertPartiallyWritten(8);
assertEquals(65527, window(STREAM_A));
assertEquals(0, window(CONNECTION_STREAM_ID));
assertWritabilityChanged(0, false);
reset(listener);
// Queue data for stream B and allow the rest of A and all of B to be written.
FakeFlowControlled dataB = new FakeFlowControlled(10);
sendData(STREAM_B, dataB);
controller.writePendingBytes();
dataB.assertNotWritten();
incrementWindowSize(CONNECTION_STREAM_ID, 12);
assertWritabilityChanged(0, false);
reset(listener);
controller.writePendingBytes();
assertEquals(0, window(CONNECTION_STREAM_ID));
assertWritabilityChanged(0, false);
// Verify the rest of A is written.
dataA.assertFullyWritten();
assertEquals(65525, window(STREAM_A));
dataB.assertFullyWritten();
assertEquals(65525, window(STREAM_B));
verifyNoMoreInteractions(listener);
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does successiveSendsShouldNotInteract() do?
successiveSendsShouldNotInteract() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java.
Where is successiveSendsShouldNotInteract() defined?
successiveSendsShouldNotInteract() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java at line 342.
What does successiveSendsShouldNotInteract() call?
successiveSendsShouldNotInteract() calls 8 function(s): FakeFlowControlled, assertFullyWritten, assertNotWritten, assertPartiallyWritten, assertWritabilityChanged, incrementWindowSize, sendData, window.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free