Top Description Fields Constructors Methods
io.netty.buffer

public final Class PooledByteBufAllocatorMetric

extends Object
implements ByteBufAllocatorMetric
Class Inheritance
All Implemented Interfaces
io.netty.buffer.ByteBufAllocatorMetric
Annotations
@SuppressWarnings:deprecation
Imports
io.netty.util.internal.StringUtil, java.util.List

Exposed metric for PooledByteBufAllocator.

Field Summary

Modifier and TypeField and Description
private final PooledByteBufAllocator

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
chunkSize()

Return the chunk size for an arena.

public List<PoolArenaMetric>
directArenas()

Return a List of all direct PoolArenaMetrics that are provided by this pool.

public List<PoolArenaMetric>
heapArenas()

Return a List of all heap PoolArenaMetrics that are provided by this pool.

public int
normalCacheSize()

Return the size of the normal cache.

public int
numDirectArenas()

Return the number of direct arenas.

public int
numHeapArenas()

Return the number of heap arenas.

public int
numThreadLocalCaches()

Return the number of thread local caches used by this PooledByteBufAllocator.

public int
smallCacheSize()

Return the size of the small cache.

public int
tinyCacheSize()

Deprecated Tiny caches have been merged into small caches.
Return the size of the tiny cache.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public long
usedDirectMemory()

Implements io.netty.buffer.ByteBufAllocatorMetric.usedDirectMemory.

Returns the number of bytes of direct memory used by a ByteBufAllocator or -1 if unknown.
public long
usedHeapMemory()

Implements io.netty.buffer.ByteBufAllocatorMetric.usedHeapMemory.

Returns the number of bytes of heap memory used by a ByteBufAllocator or -1 if unknown.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

allocatorback to summary
private final PooledByteBufAllocator allocator

Constructor Detail

PooledByteBufAllocatorMetricback to summary
pack-priv PooledByteBufAllocatorMetric(PooledByteBufAllocator allocator)

Method Detail

chunkSizeback to summary
public int chunkSize()

Return the chunk size for an arena.

directArenasback to summary
public List<PoolArenaMetric> directArenas()

Return a List of all direct PoolArenaMetrics that are provided by this pool.

heapArenasback to summary
public List<PoolArenaMetric> heapArenas()

Return a List of all heap PoolArenaMetrics that are provided by this pool.

normalCacheSizeback to summary
public int normalCacheSize()

Return the size of the normal cache.

numDirectArenasback to summary
public int numDirectArenas()

Return the number of direct arenas.

numHeapArenasback to summary
public int numHeapArenas()

Return the number of heap arenas.

numThreadLocalCachesback to summary
public int numThreadLocalCaches()

Return the number of thread local caches used by this PooledByteBufAllocator.

smallCacheSizeback to summary
public int smallCacheSize()

Return the size of the small cache.

tinyCacheSizeback to summary
public int tinyCacheSize()

Deprecated

Tiny caches have been merged into small caches.

Return the size of the tiny cache.

Annotations
@Deprecated
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
usedDirectMemoryback to summary
public long usedDirectMemory()

Implements io.netty.buffer.ByteBufAllocatorMetric.usedDirectMemory.

Doc from io.netty.buffer.ByteBufAllocatorMetric.usedDirectMemory.

Returns the number of bytes of direct memory used by a ByteBufAllocator or -1 if unknown.

Annotations
@Override
usedHeapMemoryback to summary
public long usedHeapMemory()

Implements io.netty.buffer.ByteBufAllocatorMetric.usedHeapMemory.

Doc from io.netty.buffer.ByteBufAllocatorMetric.usedHeapMemory.

Returns the number of bytes of heap memory used by a ByteBufAllocator or -1 if unknown.

Annotations
@Override