Package io.netty.buffer
Class UnpooledByteBufAllocator.UnpooledByteBufAllocatorMetric
- java.lang.Object
-
- io.netty.buffer.UnpooledByteBufAllocator.UnpooledByteBufAllocatorMetric
-
- All Implemented Interfaces:
ByteBufAllocatorMetric
- Enclosing class:
- UnpooledByteBufAllocator
private static final class UnpooledByteBufAllocator.UnpooledByteBufAllocatorMetric extends java.lang.Object implements ByteBufAllocatorMetric
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LongCounter
directCounter
(package private) LongCounter
heapCounter
-
Constructor Summary
Constructors Modifier Constructor Description private
UnpooledByteBufAllocatorMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
long
usedDirectMemory()
Returns the number of bytes of direct memory used by aByteBufAllocator
or-1
if unknown.long
usedHeapMemory()
Returns the number of bytes of heap memory used by aByteBufAllocator
or-1
if unknown.
-
-
-
Field Detail
-
directCounter
final LongCounter directCounter
-
heapCounter
final LongCounter heapCounter
-
-
Method Detail
-
usedHeapMemory
public long usedHeapMemory()
Description copied from interface:ByteBufAllocatorMetric
Returns the number of bytes of heap memory used by aByteBufAllocator
or-1
if unknown.- Specified by:
usedHeapMemory
in interfaceByteBufAllocatorMetric
-
usedDirectMemory
public long usedDirectMemory()
Description copied from interface:ByteBufAllocatorMetric
Returns the number of bytes of direct memory used by aByteBufAllocator
or-1
if unknown.- Specified by:
usedDirectMemory
in interfaceByteBufAllocatorMetric
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-