testCloseClosesPoolsImmediately() — netty Function Reference
Architecture documentation for the testCloseClosesPoolsImmediately() function in AbstractChannelPoolMapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9470e904_c9cb_4373_e292_db4177c439a2["testCloseClosesPoolsImmediately()"] a8999ca8_1527_5b77_88b4_2e7aa504b5f4["AbstractChannelPoolMapTest"] 9470e904_c9cb_4373_e292_db4177c439a2 -->|defined in| a8999ca8_1527_5b77_88b4_2e7aa504b5f4 2b6669f0_232d_e078_70a9_52eeb1552b1c["TestPool()"] 9470e904_c9cb_4373_e292_db4177c439a2 -->|calls| 2b6669f0_232d_e078_70a9_52eeb1552b1c style 9470e904_c9cb_4373_e292_db4177c439a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/pool/AbstractChannelPoolMapTest.java lines 114–139
@Test
public void testCloseClosesPoolsImmediately() {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
LocalAddress addr = new LocalAddress(getLocalAddrId());
final Bootstrap cb = new Bootstrap();
cb.remoteAddress(addr);
cb.group(group)
.channel(LocalChannel.class);
AbstractChannelPoolMap<EventLoop, TestPool> poolMap =
new AbstractChannelPoolMap<EventLoop, TestPool>() {
@Override
protected TestPool newPool(EventLoop key) {
return new TestPool(cb.clone(key), new TestChannelPoolHandler());
}
};
EventLoop loop = group.next();
TestPool pool = poolMap.get(loop);
assertFalse(pool.closeFuture.isDone());
// the pool should be closed immediately after remove
poolMap.close();
assertTrue(pool.closeFuture.isDone());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testCloseClosesPoolsImmediately() do?
testCloseClosesPoolsImmediately() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/pool/AbstractChannelPoolMapTest.java.
Where is testCloseClosesPoolsImmediately() defined?
testCloseClosesPoolsImmediately() is defined in transport/src/test/java/io/netty/channel/pool/AbstractChannelPoolMapTest.java at line 114.
What does testCloseClosesPoolsImmediately() call?
testCloseClosesPoolsImmediately() calls 1 function(s): TestPool.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free