testFlushViaThresholdOutsideOfReadLoop() — netty Function Reference
Architecture documentation for the testFlushViaThresholdOutsideOfReadLoop() function in FlushConsolidationHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9430bfb5_c2ef_b88c_20b9_d6035fe66a3e["testFlushViaThresholdOutsideOfReadLoop()"] 4ef52a0d_d145_a738_5ebe_4e1ee02cb2ca["FlushConsolidationHandlerTest"] 9430bfb5_c2ef_b88c_20b9_d6035fe66a3e -->|defined in| 4ef52a0d_d145_a738_5ebe_4e1ee02cb2ca style 9430bfb5_c2ef_b88c_20b9_d6035fe66a3e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java lines 52–63
@Test
public void testFlushViaThresholdOutsideOfReadLoop() {
final AtomicInteger flushCount = new AtomicInteger();
EmbeddedChannel channel = newChannel(flushCount, true);
// After a given threshold, the async task should be bypassed and a flush should be triggered immediately
for (int i = 0; i < EXPLICIT_FLUSH_AFTER_FLUSHES; i++) {
// To ensure we not run the async task directly we will call trigger the flush() via the pipeline.
channel.pipeline().flush();
}
assertEquals(1, flushCount.get());
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testFlushViaThresholdOutsideOfReadLoop() do?
testFlushViaThresholdOutsideOfReadLoop() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java.
Where is testFlushViaThresholdOutsideOfReadLoop() defined?
testFlushViaThresholdOutsideOfReadLoop() is defined in handler/src/test/java/io/netty/handler/flush/FlushConsolidationHandlerTest.java at line 52.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free