testRemoveClosesChannelPool() — netty Function Reference
Architecture documentation for the testRemoveClosesChannelPool() function in AbstractChannelPoolMapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fdbfdf6a_55bd_5be9_ee52_bcaafe5ff92a["testRemoveClosesChannelPool()"] a8999ca8_1527_5b77_88b4_2e7aa504b5f4["AbstractChannelPoolMapTest"] fdbfdf6a_55bd_5be9_ee52_bcaafe5ff92a -->|defined in| a8999ca8_1527_5b77_88b4_2e7aa504b5f4 2b6669f0_232d_e078_70a9_52eeb1552b1c["TestPool()"] fdbfdf6a_55bd_5be9_ee52_bcaafe5ff92a -->|calls| 2b6669f0_232d_e078_70a9_52eeb1552b1c style fdbfdf6a_55bd_5be9_ee52_bcaafe5ff92a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/pool/AbstractChannelPoolMapTest.java lines 86–112
@Test
public void testRemoveClosesChannelPool() {
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);
assertTrue(poolMap.remove(loop));
// the pool should be closed eventually after remove
pool.closeFuture.awaitUninterruptibly(1, TimeUnit.SECONDS);
assertTrue(pool.closeFuture.isDone());
poolMap.close();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testRemoveClosesChannelPool() do?
testRemoveClosesChannelPool() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/pool/AbstractChannelPoolMapTest.java.
Where is testRemoveClosesChannelPool() defined?
testRemoveClosesChannelPool() is defined in transport/src/test/java/io/netty/channel/pool/AbstractChannelPoolMapTest.java at line 86.
What does testRemoveClosesChannelPool() call?
testRemoveClosesChannelPool() 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