CountingChannelPoolHandler Class — netty Architecture
Architecture documentation for the CountingChannelPoolHandler class in CountingChannelPoolHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 56e59f00_537b_35a2_5955_981c63caa69d["CountingChannelPoolHandler"] dbaf5f03_10bd_6629_7f42_23a76a8d5bfd["CountingChannelPoolHandler.java"] 56e59f00_537b_35a2_5955_981c63caa69d -->|defined in| dbaf5f03_10bd_6629_7f42_23a76a8d5bfd 6d97bad8_4041_4414_c708_9a4dc530e46b["channelCreated()"] 56e59f00_537b_35a2_5955_981c63caa69d -->|method| 6d97bad8_4041_4414_c708_9a4dc530e46b c55d018b_3659_52d3_8900_a45723252da8["channelReleased()"] 56e59f00_537b_35a2_5955_981c63caa69d -->|method| c55d018b_3659_52d3_8900_a45723252da8 264ef2f6_030b_1c6a_8d18_aee331e6d235["channelAcquired()"] 56e59f00_537b_35a2_5955_981c63caa69d -->|method| 264ef2f6_030b_1c6a_8d18_aee331e6d235 8a090727_f904_5234_3927_152ffa4f81bc["channelCount()"] 56e59f00_537b_35a2_5955_981c63caa69d -->|method| 8a090727_f904_5234_3927_152ffa4f81bc 61a01732_cfe4_4c8b_b621_50a58581bb56["acquiredCount()"] 56e59f00_537b_35a2_5955_981c63caa69d -->|method| 61a01732_cfe4_4c8b_b621_50a58581bb56 1fcaca53_d5b3_7abd_fc45_faf556ee3a8d["releasedCount()"] 56e59f00_537b_35a2_5955_981c63caa69d -->|method| 1fcaca53_d5b3_7abd_fc45_faf556ee3a8d
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/pool/CountingChannelPoolHandler.java lines 22–53
final class CountingChannelPoolHandler implements ChannelPoolHandler {
private final AtomicInteger channelCount = new AtomicInteger(0);
private final AtomicInteger acquiredCount = new AtomicInteger(0);
private final AtomicInteger releasedCount = new AtomicInteger(0);
@Override
public void channelCreated(Channel ch) {
channelCount.incrementAndGet();
}
@Override
public void channelReleased(Channel ch) {
releasedCount.incrementAndGet();
}
@Override
public void channelAcquired(Channel ch) {
acquiredCount.incrementAndGet();
}
public int channelCount() {
return channelCount.get();
}
public int acquiredCount() {
return acquiredCount.get();
}
public int releasedCount() {
return releasedCount.get();
}
}
Source
Frequently Asked Questions
What is the CountingChannelPoolHandler class?
CountingChannelPoolHandler is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/pool/CountingChannelPoolHandler.java.
Where is CountingChannelPoolHandler defined?
CountingChannelPoolHandler is defined in transport/src/test/java/io/netty/channel/pool/CountingChannelPoolHandler.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free