ChunkRegistry Class — netty Architecture
Architecture documentation for the ChunkRegistry class in AdaptivePoolingAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 165e9fab_51f7_8678_b955_a00810e947c9["ChunkRegistry"] fee3fa6d_a7fb_30d6_ea34_49602c633a2c["AdaptivePoolingAllocator.java"] 165e9fab_51f7_8678_b955_a00810e947c9 -->|defined in| fee3fa6d_a7fb_30d6_ea34_49602c633a2c 70c9ceec_2b0e_b9e0_f32d_7eab19cde8aa["totalCapacity()"] 165e9fab_51f7_8678_b955_a00810e947c9 -->|method| 70c9ceec_2b0e_b9e0_f32d_7eab19cde8aa 006e8f47_e5d6_8354_9cd4_12fe398c12dd["add()"] 165e9fab_51f7_8678_b955_a00810e947c9 -->|method| 006e8f47_e5d6_8354_9cd4_12fe398c12dd 2b1d13b5_b5b9_8db8_baa4_b5edd12f88d0["remove()"] 165e9fab_51f7_8678_b955_a00810e947c9 -->|method| 2b1d13b5_b5b9_8db8_baa4_b5edd12f88d0
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 1054–1068
private static final class ChunkRegistry {
private final LongAdder totalCapacity = new LongAdder();
public long totalCapacity() {
return totalCapacity.sum();
}
public void add(Chunk chunk) {
totalCapacity.add(chunk.capacity());
}
public void remove(Chunk chunk) {
totalCapacity.add(-chunk.capacity());
}
}
Source
Frequently Asked Questions
What is the ChunkRegistry class?
ChunkRegistry is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is ChunkRegistry defined?
ChunkRegistry is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 1054.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free