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 int
chunkSize()
Return the chunk size for an arena.java.util.List<PoolArenaMetric>
directArenas()
Return aList
of all directPoolArenaMetric
s that are provided by this pool.java.util.List<PoolArenaMetric>
heapArenas()
Return aList
of all heapPoolArenaMetric
s that are provided by this pool.int
normalCacheSize()
Return the size of the normal cache.int
numDirectArenas()
Return the number of direct arenas.int
numHeapArenas()
Return the number of heap arenas.int
numThreadLocalCaches()
Return the number of thread local caches used by thisPooledByteBufAllocator
.int
smallCacheSize()
Return the size of the small cache.int
tinyCacheSize()
Deprecated.Tiny caches have been merged into small caches.java.lang.String
toString()
long
usedDirectMemory()
Returns the number of bytes of direct memory used by aByteBufAllocator
or-1
if unknown.long
usedHeapMemory()
Returns the number of bytes of heap memory used by aByteBufAllocator
or-1
if 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 aList
of all heapPoolArenaMetric
s that are provided by this pool.
-
directArenas
public java.util.List<PoolArenaMetric> directArenas()
Return aList
of all directPoolArenaMetric
s 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:ByteBufAllocatorMetric
Returns the number of bytes of heap memory used by aByteBufAllocator
or-1
if unknown.- Specified by:
usedHeapMemory
in interfaceByteBufAllocatorMetric
-
usedDirectMemory
public long usedDirectMemory()
Description copied from interface:ByteBufAllocatorMetric
Returns the number of bytes of direct memory used by aByteBufAllocator
or-1
if unknown.- Specified by:
usedDirectMemory
in interfaceByteBufAllocatorMetric
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-