channelTrafficCounters() — netty Function Reference
Architecture documentation for the channelTrafficCounters() function in GlobalChannelTrafficShapingHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b05773cd_5414_46bc_38e5_5b52e2dde69c["channelTrafficCounters()"] 70857fc2_a134_e299_7b48_1738d53c0016["GlobalChannelTrafficShapingHandler"] b05773cd_5414_46bc_38e5_5b52e2dde69c -->|defined in| 70857fc2_a134_e299_7b48_1738d53c0016 style b05773cd_5414_46bc_38e5_5b52e2dde69c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficShapingHandler.java lines 623–648
public Collection<TrafficCounter> channelTrafficCounters() {
return new AbstractCollection<TrafficCounter>() {
@Override
public Iterator<TrafficCounter> iterator() {
return new Iterator<TrafficCounter>() {
final Iterator<PerChannel> iter = channelQueues.values().iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TrafficCounter next() {
return iter.next().channelTrafficCounter;
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
@Override
public int size() {
return channelQueues.size();
}
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does channelTrafficCounters() do?
channelTrafficCounters() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficShapingHandler.java.
Where is channelTrafficCounters() defined?
channelTrafficCounters() is defined in handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficShapingHandler.java at line 623.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free