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()
ByteBufAllocatorMetricByteBufAllocator or -1 if unknown.usedHeapMemory in interface ByteBufAllocatorMetricpublic long usedDirectMemory()
ByteBufAllocatorMetricByteBufAllocator or -1 if unknown.usedDirectMemory in interface ByteBufAllocatorMetricpublic java.lang.String toString()
toString in class java.lang.Object