nonWritableChannelDoesNotAttemptToWrite() — netty Function Reference
Architecture documentation for the nonWritableChannelDoesNotAttemptToWrite() function in DefaultHttp2RemoteFlowControllerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cbf824fe_e9cc_34ce_8efe_68dfd754d243["nonWritableChannelDoesNotAttemptToWrite()"] f8fd7697_92d4_6455_4dd8_09a33ac81a6f["DefaultHttp2RemoteFlowControllerTest"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|defined in| f8fd7697_92d4_6455_4dd8_09a33ac81a6f fcf0135d_da22_5e56_b897_80632a4345f6["setChannelWritability()"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|calls| fcf0135d_da22_5e56_b897_80632a4345f6 90444244_2b60_c843_559a_6c55d7a4e9ac["assertWritabilityChanged()"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac 136071dd_c92e_5482_7cb2_c1ba0769c1ab["FakeFlowControlled()"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|calls| 136071dd_c92e_5482_7cb2_c1ba0769c1ab 4d627b61_f0ea_0927_043f_7bfb246d71d1["assertNotWritten()"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|calls| 4d627b61_f0ea_0927_043f_7bfb246d71d1 947caffb_54ef_9984_108e_69119ef018d1["incrementWindowSize()"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|calls| 947caffb_54ef_9984_108e_69119ef018d1 da0712d5_2b96_e340_6c7a_17114adb9efc["assertFullyWritten()"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|calls| da0712d5_2b96_e340_6c7a_17114adb9efc style cbf824fe_e9cc_34ce_8efe_68dfd754d243 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java lines 834–865
@Test
public void nonWritableChannelDoesNotAttemptToWrite() throws Exception {
// Start the channel as not writable and exercise the public methods of the flow controller
// making sure no frames are written.
setChannelWritability(false);
assertWritabilityChanged(1, false);
reset(listener);
FakeFlowControlled dataA = new FakeFlowControlled(1);
FakeFlowControlled dataB = new FakeFlowControlled(1);
final Http2Stream stream = stream(STREAM_A);
controller.addFlowControlled(stream, dataA);
controller.writePendingBytes();
dataA.assertNotWritten();
controller.incrementWindowSize(stream, 100);
controller.writePendingBytes();
dataA.assertNotWritten();
controller.addFlowControlled(stream, dataB);
controller.writePendingBytes();
dataA.assertNotWritten();
dataB.assertNotWritten();
assertWritabilityChanged(0, false);
// Now change the channel to writable and make sure frames are written.
setChannelWritability(true);
assertWritabilityChanged(1, true);
controller.writePendingBytes();
dataA.assertFullyWritten();
dataB.assertFullyWritten();
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does nonWritableChannelDoesNotAttemptToWrite() do?
nonWritableChannelDoesNotAttemptToWrite() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java.
Where is nonWritableChannelDoesNotAttemptToWrite() defined?
nonWritableChannelDoesNotAttemptToWrite() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java at line 834.
What does nonWritableChannelDoesNotAttemptToWrite() call?
nonWritableChannelDoesNotAttemptToWrite() calls 6 function(s): FakeFlowControlled, assertFullyWritten, assertNotWritten, assertWritabilityChanged, incrementWindowSize, setChannelWritability.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free