public final class PooledByteBufAllocatorMetric extends java.lang.Object implements ByteBufAllocatorMetric
PooledByteBufAllocator
.限定符和类型 | 方法和说明 |
---|---|
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()
已过时。
Tiny caches have been merged into small caches.
|
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
.@Deprecated public int tinyCacheSize()
public int smallCacheSize()
public int normalCacheSize()
public int chunkSize()
public long usedHeapMemory()
ByteBufAllocatorMetric
ByteBufAllocator
or -1
if unknown.usedHeapMemory
在接口中 ByteBufAllocatorMetric
public long usedDirectMemory()
ByteBufAllocatorMetric
ByteBufAllocator
or -1
if unknown.usedDirectMemory
在接口中 ByteBufAllocatorMetric
public java.lang.String toString()
toString
在类中 java.lang.Object