private static final class UnpooledByteBufAllocator.UnpooledByteBufAllocatorMetric extends java.lang.Object implements ByteBufAllocatorMetric
Modifier and Type | Field and Description |
---|---|
(package private) LongCounter |
directCounter |
(package private) LongCounter |
heapCounter |
Modifier | Constructor and Description |
---|---|
private |
UnpooledByteBufAllocatorMetric() |
Modifier and Type | Method and Description |
---|---|
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. |
final LongCounter directCounter
final LongCounter heapCounter
public long usedHeapMemory()
ByteBufAllocatorMetric
ByteBufAllocator
or -1
if unknown.usedHeapMemory
in interface ByteBufAllocatorMetric
public long usedDirectMemory()
ByteBufAllocatorMetric
ByteBufAllocator
or -1
if unknown.usedDirectMemory
in interface ByteBufAllocatorMetric
public java.lang.String toString()
toString
in class java.lang.Object