AcceptedChannelCounter Class — netty Architecture
Architecture documentation for the AcceptedChannelCounter class in ServerSocketSuspendTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ea913e6a_4e83_309e_e666_64c5a3f509d1["AcceptedChannelCounter"] ceabaaab_883c_c6bf_1006_e4b3e5308f1c["ServerSocketSuspendTest.java"] ea913e6a_4e83_309e_e666_64c5a3f509d1 -->|defined in| ceabaaab_883c_c6bf_1006_e4b3e5308f1c 5c9791be_a5a4_dd18_0cd6_1875b6faacc4["AcceptedChannelCounter()"] ea913e6a_4e83_309e_e666_64c5a3f509d1 -->|method| 5c9791be_a5a4_dd18_0cd6_1875b6faacc4 9da152f6_1866_d5a9_4649_859a5fee7d07["channelActive()"] ea913e6a_4e83_309e_e666_64c5a3f509d1 -->|method| 9da152f6_1866_d5a9_4649_859a5fee7d07
Relationship Graph
Source Code
testsuite/src/main/java/io/netty/testsuite/transport/socket/ServerSocketSuspendTest.java lines 102–115
@ChannelHandler.Sharable
private static final class AcceptedChannelCounter extends ChannelInboundHandlerAdapter {
final CountDownLatch latch;
AcceptedChannelCounter(int nChannels) {
latch = new CountDownLatch(nChannels);
}
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
latch.countDown();
}
}
Source
Frequently Asked Questions
What is the AcceptedChannelCounter class?
AcceptedChannelCounter is a class in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/ServerSocketSuspendTest.java.
Where is AcceptedChannelCounter defined?
AcceptedChannelCounter is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/ServerSocketSuspendTest.java at line 102.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free