public final class PooledByteBufAllocatorMetric extends Object implements ByteBufAllocatorMetric
PooledByteBufAllocator
.Modifier and Type | Method and Description |
---|---|
int |
chunkSize()
Return the chunk size for an arena.
|
List<PoolArenaMetric> |
directArenas()
Return a
List of all direct PoolArenaMetric s that are provided by this pool. |
List<PoolArenaMetric> |
heapArenas()
Return a
List of all heap PoolArenaMetric 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 this
PooledByteBufAllocator . |
int |
smallCacheSize()
Return the size of the small cache.
|
int |
tinyCacheSize()
Deprecated.
Tiny caches have been merged into small caches.
|
String |
toString() |
long |
usedDirectMemory()
Returns the number of bytes of direct memory used by a
ByteBufAllocator or -1 if unknown. |
long |
usedHeapMemory()
Returns the number of bytes of heap memory used by a
ByteBufAllocator or -1 if unknown. |
public int numHeapArenas()
public int numDirectArenas()
public List<PoolArenaMetric> heapArenas()
List
of all heap PoolArenaMetric
s that are provided by this pool.public List<PoolArenaMetric> directArenas()
List
of all direct PoolArenaMetric
s that are provided by this pool.public int numThreadLocalCaches()
PooledByteBufAllocator
.@Deprecated public int tinyCacheSize()
public int smallCacheSize()
public int normalCacheSize()
public int chunkSize()
public long usedHeapMemory()
ByteBufAllocatorMetric
ByteBufAllocator
or -1
if unknown.usedHeapMemory
in interface ByteBufAllocatorMetric
public long usedDirectMemory()
ByteBufAllocatorMetric
ByteBufAllocator
or -1
if unknown.usedDirectMemory
in interface ByteBufAllocatorMetric
Copyright © 2008–2024 The Netty Project. All rights reserved.