testAcquireNewConnection() — netty Function Reference
Architecture documentation for the testAcquireNewConnection() function in FixedChannelPoolTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a7422301_805d_ae43_e86e_f77af3710c4a["testAcquireNewConnection()"] 92761f16_3144_6791_29c9_00f65a091a8f["FixedChannelPoolTest"] a7422301_805d_ae43_e86e_f77af3710c4a -->|defined in| 92761f16_3144_6791_29c9_00f65a091a8f style a7422301_805d_ae43_e86e_f77af3710c4a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java lines 131–148
@Test
public void testAcquireNewConnection() throws Exception {
Tuple t = bootstrap();
// Start server
Channel sc = t.sb.bind(t.address).syncUninterruptibly().channel();
ChannelPoolHandler handler = new TestChannelPoolHandler();
ChannelPool pool = new FixedChannelPool(t.cb, handler, ChannelHealthChecker.ACTIVE,
AcquireTimeoutAction.NEW, 500, 1, Integer.MAX_VALUE);
Channel channel = pool.acquire().syncUninterruptibly().getNow();
Channel channel2 = pool.acquire().syncUninterruptibly().getNow();
assertNotSame(channel, channel2);
sc.close().syncUninterruptibly();
channel.close().syncUninterruptibly();
channel2.close().syncUninterruptibly();
pool.close();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testAcquireNewConnection() do?
testAcquireNewConnection() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java.
Where is testAcquireNewConnection() defined?
testAcquireNewConnection() is defined in transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java at line 131.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free