public final class PooledByteBufAllocatorMetric extends java.lang.Object implements ByteBufAllocatorMetric
PooledByteBufAllocator
.Modifier and Type | Method and Description |
---|---|
int |
chunkSize()
Return the chunk size for an arena.
|
java.util.List<PoolArenaMetric> |
directArenas()
Return a
List of all direct PoolArenaMetric s that are provided by this pool. |
java.util.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()
Return the size of the tiny cache.
|
java.lang.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 java.util.List<PoolArenaMetric> heapArenas()
List
of all heap PoolArenaMetric
s that are provided by this pool.public java.util.List<PoolArenaMetric> directArenas()
List
of all direct PoolArenaMetric
s that are provided by this pool.public int numThreadLocalCaches()
PooledByteBufAllocator
.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
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2008–2018 The Netty Project. All rights reserved.