Top Description Fields Constructors Methods
io.netty5.buffer.pool

pack-priv final Class PooledBufferAllocatorMetric

extends Object
implements BufferAllocatorMetric
Class Inheritance
All Implemented Interfaces
io.netty5.buffer.pool.BufferAllocatorMetric
Imports
io.netty5.util.internal.StringUtil, java.util.List

Exposed metric for PooledBufferAllocator.

Field Summary

Modifier and TypeField and Description
private final PooledBufferAllocator

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public List<PoolArenaMetric>
arenaMetrics()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.arenaMetrics.

Return a List of all PoolArenaMetrics that are provided by this pool.
public int
chunkSize()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.chunkSize.

Return the chunk size for an arena.
public int
normalCacheSize()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.normalCacheSize.

Return the size of the normal cache.
public int
numArenas()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.numArenas.

Return the number of arenas.
public int
numThreadLocalCaches()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.numThreadLocalCaches.

Return the number of thread local caches used by this PooledBufferAllocator.
public long
pinnedMemory()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.pinnedMemory.

Returns the number of bytes of memory that is currently pinned to the buffers allocated by a BufferAllocator, or -1 if unknown.
public int
smallCacheSize()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.smallCacheSize.

Return the size of the small cache.
public String
toString()

Overrides java.lang.Object.toString.

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

Implements io.netty5.buffer.pool.BufferAllocatorMetric.usedMemory.

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

Field Detail

allocatorback to summary
private final PooledBufferAllocator allocator

Constructor Detail

PooledBufferAllocatorMetricback to summary
pack-priv PooledBufferAllocatorMetric(PooledBufferAllocator allocator)

Method Detail

arenaMetricsback to summary
public List<PoolArenaMetric> arenaMetrics()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.arenaMetrics.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.arenaMetrics.

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

Annotations
@Override
chunkSizeback to summary
public int chunkSize()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.chunkSize.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.chunkSize.

Return the chunk size for an arena.

Annotations
@Override
normalCacheSizeback to summary
public int normalCacheSize()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.normalCacheSize.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.normalCacheSize.

Return the size of the normal cache.

Annotations
@Override
numArenasback to summary
public int numArenas()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.numArenas.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.numArenas.

Return the number of arenas.

Annotations
@Override
numThreadLocalCachesback to summary
public int numThreadLocalCaches()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.numThreadLocalCaches.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.numThreadLocalCaches.

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

Annotations
@Override
pinnedMemoryback to summary
public long pinnedMemory()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.pinnedMemory.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.pinnedMemory.

Returns the number of bytes of memory that is currently pinned to the buffers allocated by a BufferAllocator, or -1 if unknown.

Annotations
@Override
smallCacheSizeback to summary
public int smallCacheSize()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.smallCacheSize.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.smallCacheSize.

Return the size of the small cache.

Annotations
@Override
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
usedMemoryback to summary
public long usedMemory()

Implements io.netty5.buffer.pool.BufferAllocatorMetric.usedMemory.

Doc from io.netty5.buffer.pool.BufferAllocatorMetric.usedMemory.

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

Annotations
@Override