testTooManyServerChannels() — netty Function Reference
Architecture documentation for the testTooManyServerChannels() function in OioEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6b4900fc_9600_3087_715b_7b5fc25aa68f["testTooManyServerChannels()"] 014786d9_6185_4241_3f9d_b335998e5758["OioEventLoopTest"] 6b4900fc_9600_3087_715b_7b5fc25aa68f -->|defined in| 014786d9_6185_4241_3f9d_b335998e5758 style 6b4900fc_9600_3087_715b_7b5fc25aa68f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/oio/OioEventLoopTest.java lines 40–66
@Test
public void testTooManyServerChannels() throws Exception {
EventLoopGroup g = new OioEventLoopGroup(1);
ServerBootstrap b = new ServerBootstrap();
b.channel(OioServerSocketChannel.class);
b.group(g);
b.childHandler(new ChannelInboundHandlerAdapter());
ChannelFuture f1 = b.bind(0);
f1.sync();
ChannelFuture f2 = b.bind(0);
f2.await();
assertInstanceOf(ChannelException.class, f2.cause());
assertThat(f2.cause().getMessage().toLowerCase()).contains("too many channels");
final CountDownLatch notified = new CountDownLatch(1);
f2.addListener(new ChannelFutureListener() {
@Override
public void operationComplete(ChannelFuture future) throws Exception {
notified.countDown();
}
});
notified.await();
g.shutdownGracefully();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testTooManyServerChannels() do?
testTooManyServerChannels() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/oio/OioEventLoopTest.java.
Where is testTooManyServerChannels() defined?
testTooManyServerChannels() is defined in transport/src/test/java/io/netty/channel/oio/OioEventLoopTest.java at line 40.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free