samePriorityShouldDistributeBasedOnData() — netty Function Reference
Architecture documentation for the samePriorityShouldDistributeBasedOnData() function in WeightedFairQueueByteDistributorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6be9e301_0985_1b66_78f4_8bd4840c86c2["samePriorityShouldDistributeBasedOnData()"] 67b7550d_3bc6_4a2b_6b2f_618af35d6df8["WeightedFairQueueByteDistributorTest"] 6be9e301_0985_1b66_78f4_8bd4840c86c2 -->|defined in| 67b7550d_3bc6_4a2b_6b2f_618af35d6df8 11b51d3d_8188_9502_be8f_cc1ca56136d9["write()"] 6be9e301_0985_1b66_78f4_8bd4840c86c2 -->|calls| 11b51d3d_8188_9502_be8f_cc1ca56136d9 fa4d7172_24a5_f6ad_635f_9c2cba8fd926["captureWrites()"] 6be9e301_0985_1b66_78f4_8bd4840c86c2 -->|calls| fa4d7172_24a5_f6ad_635f_9c2cba8fd926 7bda6a25_cd2a_2145_1a6b_a3c3169cec22["verifyWrite()"] 6be9e301_0985_1b66_78f4_8bd4840c86c2 -->|calls| 7bda6a25_cd2a_2145_1a6b_a3c3169cec22 style 6be9e301_0985_1b66_78f4_8bd4840c86c2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java lines 612–633
@Test
public void samePriorityShouldDistributeBasedOnData() throws Http2Exception {
// Root the streams at the connection with the same weights.
setPriority(STREAM_A, 0, DEFAULT_PRIORITY_WEIGHT, false);
setPriority(STREAM_B, 0, DEFAULT_PRIORITY_WEIGHT, false);
setPriority(STREAM_C, 0, DEFAULT_PRIORITY_WEIGHT, false);
setPriority(STREAM_D, 0, DEFAULT_PRIORITY_WEIGHT, false);
initState(STREAM_A, 400, true);
initState(STREAM_B, 500, true);
initState(STREAM_C, 0, true);
initState(STREAM_D, 700, true);
// Set allocation quantum to 1 so it is easier to see the ratio of total bytes written between each stream.
distributor.allocationQuantum(1);
assertTrue(write(999));
assertEquals(333, captureWrites(STREAM_A));
assertEquals(333, captureWrites(STREAM_B));
verifyWrite(times(1), STREAM_C, 0);
assertEquals(333, captureWrites(STREAM_D));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does samePriorityShouldDistributeBasedOnData() do?
samePriorityShouldDistributeBasedOnData() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java.
Where is samePriorityShouldDistributeBasedOnData() defined?
samePriorityShouldDistributeBasedOnData() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java at line 612.
What does samePriorityShouldDistributeBasedOnData() call?
samePriorityShouldDistributeBasedOnData() calls 3 function(s): captureWrites, verifyWrite, write.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free