Package io.netty.buffer
Class PooledByteBufAllocatorMetric
- java.lang.Object
-
- io.netty.buffer.PooledByteBufAllocatorMetric
-
- All Implemented Interfaces:
ByteBufAllocatorMetric
public final class PooledByteBufAllocatorMetric extends java.lang.Object implements ByteBufAllocatorMetric
Exposed metric forPooledByteBufAllocator.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intchunkSize()Return the chunk size for an arena.java.util.List<PoolArenaMetric>directArenas()Return aListof all directPoolArenaMetrics that are provided by this pool.java.util.List<PoolArenaMetric>heapArenas()Return aListof all heapPoolArenaMetrics that are provided by this pool.intnormalCacheSize()Return the size of the normal cache.intnumDirectArenas()Return the number of direct arenas.intnumHeapArenas()Return the number of heap arenas.intnumThreadLocalCaches()Return the number of thread local caches used by thisPooledByteBufAllocator.intsmallCacheSize()Return the size of the small cache.inttinyCacheSize()Deprecated.Tiny caches have been merged into small caches.java.lang.StringtoString()longusedDirectMemory()Returns the number of bytes of direct memory used by aByteBufAllocatoror-1if unknown.longusedHeapMemory()Returns the number of bytes of heap memory used by aByteBufAllocatoror-1if unknown.
-
-
-
Method Detail
-
numHeapArenas
public int numHeapArenas()
Return the number of heap arenas.
-
numDirectArenas
public int numDirectArenas()
Return the number of direct arenas.
-
heapArenas
public java.util.List<PoolArenaMetric> heapArenas()
Return aListof all heapPoolArenaMetrics that are provided by this pool.
-
directArenas
public java.util.List<PoolArenaMetric> directArenas()
Return aListof all directPoolArenaMetrics that are provided by this pool.
-
numThreadLocalCaches
public int numThreadLocalCaches()
Return the number of thread local caches used by thisPooledByteBufAllocator.
-
tinyCacheSize
@Deprecated public int tinyCacheSize()
Deprecated.Tiny caches have been merged into small caches.Return the size of the tiny cache.
-
smallCacheSize
public int smallCacheSize()
Return the size of the small cache.
-
normalCacheSize
public int normalCacheSize()
Return the size of the normal cache.
-
chunkSize
public int chunkSize()
Return the chunk size for an arena.
-
usedHeapMemory
public long usedHeapMemory()
Description copied from interface:ByteBufAllocatorMetricReturns the number of bytes of heap memory used by aByteBufAllocatoror-1if unknown.- Specified by:
usedHeapMemoryin interfaceByteBufAllocatorMetric
-
usedDirectMemory
public long usedDirectMemory()
Description copied from interface:ByteBufAllocatorMetricReturns the number of bytes of direct memory used by aByteBufAllocatoror-1if unknown.- Specified by:
usedDirectMemoryin interfaceByteBufAllocatorMetric
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-