UnpooledByteBufAllocatorMetric Class — netty Architecture
Architecture documentation for the UnpooledByteBufAllocatorMetric class in UnpooledByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8aa5612e_6eca_638d_1952_2e8649ce7a81["UnpooledByteBufAllocatorMetric"] 0b4b2671_fb24_9a0d_bc3a_aef00ae524b0["UnpooledByteBufAllocator.java"] 8aa5612e_6eca_638d_1952_2e8649ce7a81 -->|defined in| 0b4b2671_fb24_9a0d_bc3a_aef00ae524b0 e18d6fb2_d718_c3ca_e508_f58110ccb2e6["usedHeapMemory()"] 8aa5612e_6eca_638d_1952_2e8649ce7a81 -->|method| e18d6fb2_d718_c3ca_e508_f58110ccb2e6 53e9e89f_66ea_bcfa_9750_a2acb0e3c7e9["usedDirectMemory()"] 8aa5612e_6eca_638d_1952_2e8649ce7a81 -->|method| 53e9e89f_66ea_bcfa_9750_a2acb0e3c7e9 eda5565a_c0bb_fcdc_ec64_6005784877b2["String()"] 8aa5612e_6eca_638d_1952_2e8649ce7a81 -->|method| eda5565a_c0bb_fcdc_ec64_6005784877b2
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java lines 284–303
private static final class UnpooledByteBufAllocatorMetric implements ByteBufAllocatorMetric {
final LongAdder directCounter = new LongAdder();
final LongAdder heapCounter = new LongAdder();
@Override
public long usedHeapMemory() {
return heapCounter.sum();
}
@Override
public long usedDirectMemory() {
return directCounter.sum();
}
@Override
public String toString() {
return StringUtil.simpleClassName(this) +
"(usedHeapMemory: " + usedHeapMemory() + "; usedDirectMemory: " + usedDirectMemory() + ')';
}
}
Source
Frequently Asked Questions
What is the UnpooledByteBufAllocatorMetric class?
UnpooledByteBufAllocatorMetric is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java.
Where is UnpooledByteBufAllocatorMetric defined?
UnpooledByteBufAllocatorMetric is defined in buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java at line 284.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free