PooledByteBufAllocatorMetric Class — netty Architecture
Architecture documentation for the PooledByteBufAllocatorMetric class in PooledByteBufAllocatorMetric.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ab613639_1da3_8578_6186_77c108a874cd["PooledByteBufAllocatorMetric"] 4d3c65f4_2124_0bca_14ac_0ffbe285b9f3["PooledByteBufAllocatorMetric.java"] ab613639_1da3_8578_6186_77c108a874cd -->|defined in| 4d3c65f4_2124_0bca_14ac_0ffbe285b9f3 7f757556_b6c7_206d_d95a_43d0dcd7d916["PooledByteBufAllocatorMetric()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 7f757556_b6c7_206d_d95a_43d0dcd7d916 daa48173_750b_5178_6d77_c20770a9954b["numHeapArenas()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| daa48173_750b_5178_6d77_c20770a9954b 92118c58_d97d_abca_0d4e_39416180dab2["numDirectArenas()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 92118c58_d97d_abca_0d4e_39416180dab2 0230309d_ed43_9983_433e_545c421ef21d["heapArenas()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 0230309d_ed43_9983_433e_545c421ef21d ff595a9c_c06d_66a8_5312_43f6beb2cf4f["directArenas()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| ff595a9c_c06d_66a8_5312_43f6beb2cf4f 69e34e95_bab3_d0b0_0483_e245a9d33429["numThreadLocalCaches()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 69e34e95_bab3_d0b0_0483_e245a9d33429 2dfa3dab_e586_f6d0_7378_116298d3b90c["tinyCacheSize()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 2dfa3dab_e586_f6d0_7378_116298d3b90c d1fc9634_9ebb_8e2c_3b12_0f96c9b0882c["smallCacheSize()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| d1fc9634_9ebb_8e2c_3b12_0f96c9b0882c 4d714d40_b971_4b77_ba46_2dbd5f12db54["normalCacheSize()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 4d714d40_b971_4b77_ba46_2dbd5f12db54 b4c67240_49de_aed5_e04b_b58188942a03["chunkSize()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| b4c67240_49de_aed5_e04b_b58188942a03 5856648e_0033_d9ab_3971_dc98c465f742["usedHeapMemory()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 5856648e_0033_d9ab_3971_dc98c465f742 35d002e4_c984_828f_d622_f6284779d295["usedDirectMemory()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| 35d002e4_c984_828f_d622_f6284779d295 ed142766_e4af_0b80_1560_167107590c61["String()"] ab613639_1da3_8578_6186_77c108a874cd -->|method| ed142766_e4af_0b80_1560_167107590c61
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PooledByteBufAllocatorMetric.java lines 25–124
@SuppressWarnings("deprecation")
public final class PooledByteBufAllocatorMetric implements ByteBufAllocatorMetric {
private final PooledByteBufAllocator allocator;
PooledByteBufAllocatorMetric(PooledByteBufAllocator allocator) {
this.allocator = allocator;
}
/**
* Return the number of heap arenas.
*/
public int numHeapArenas() {
return allocator.numHeapArenas();
}
/**
* Return the number of direct arenas.
*/
public int numDirectArenas() {
return allocator.numDirectArenas();
}
/**
* Return a {@link List} of all heap {@link PoolArenaMetric}s that are provided by this pool.
*/
public List<PoolArenaMetric> heapArenas() {
return allocator.heapArenas();
}
/**
* Return a {@link List} of all direct {@link PoolArenaMetric}s that are provided by this pool.
*/
public List<PoolArenaMetric> directArenas() {
return allocator.directArenas();
}
/**
* Return the number of thread local caches used by this {@link PooledByteBufAllocator}.
*/
public int numThreadLocalCaches() {
return allocator.numThreadLocalCaches();
}
/**
* Return the size of the tiny cache.
*
* @deprecated Tiny caches have been merged into small caches.
*/
@Deprecated
public int tinyCacheSize() {
return allocator.tinyCacheSize();
}
/**
* Return the size of the small cache.
*/
public int smallCacheSize() {
return allocator.smallCacheSize();
}
/**
* Return the size of the normal cache.
*/
public int normalCacheSize() {
return allocator.normalCacheSize();
}
/**
* Return the chunk size for an arena.
*/
public int chunkSize() {
return allocator.chunkSize();
}
@Override
public long usedHeapMemory() {
return allocator.usedHeapMemory();
}
@Override
Source
Frequently Asked Questions
What is the PooledByteBufAllocatorMetric class?
PooledByteBufAllocatorMetric is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocatorMetric.java.
Where is PooledByteBufAllocatorMetric defined?
PooledByteBufAllocatorMetric is defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocatorMetric.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free