Class PooledByteBufAllocatorMetric

java.lang.Object
io.netty.buffer.PooledByteBufAllocatorMetric
All Implemented Interfaces:
ByteBufAllocatorMetric

public final class PooledByteBufAllocatorMetric extends Object implements ByteBufAllocatorMetric
Exposed metric for PooledByteBufAllocator.
  • Field Details

  • Constructor Details

  • Method Details

    • numHeapArenas

      public int numHeapArenas()
      Return the number of heap arenas.
    • numDirectArenas

      public int numDirectArenas()
      Return the number of direct arenas.
    • heapArenas

      public List<PoolArenaMetric> heapArenas()
      Return a List of all heap PoolArenaMetrics that are provided by this pool.
    • directArenas

      public List<PoolArenaMetric> directArenas()
      Return a List of all direct PoolArenaMetrics that are provided by this pool.
    • numThreadLocalCaches

      public int numThreadLocalCaches()
      Return the number of thread local caches used by this PooledByteBufAllocator.
    • tinyCacheSize

      @Deprecated public int tinyCacheSize()
      Deprecated.
      Tiny caches have been merged into small caches.
      Return the size of the tiny cache.
    • smallCacheSize

      public int smallCacheSize()
      Return the size of the small cache.
    • normalCacheSize

      public int normalCacheSize()
      Return the size of the normal cache.
    • chunkSize

      public int chunkSize()
      Return the chunk size for an arena.
    • usedHeapMemory

      public long usedHeapMemory()
      Description copied from interface: ByteBufAllocatorMetric
      Returns the number of bytes of heap memory used by a ByteBufAllocator or -1 if unknown.
      Specified by:
      usedHeapMemory in interface ByteBufAllocatorMetric
    • usedDirectMemory

      public long usedDirectMemory()
      Description copied from interface: ByteBufAllocatorMetric
      Returns the number of bytes of direct memory used by a ByteBufAllocator or -1 if unknown.
      Specified by:
      usedDirectMemory in interface ByteBufAllocatorMetric
    • toString

      public String toString()
      Overrides:
      toString in class Object