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) LongCounterdirectCounter(package private) LongCounterheapCounter
-
Constructor Summary
Constructors Modifier Constructor Description privateUnpooledByteBufAllocatorMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()longusedDirectMemory()Returns the number of bytes of direct memory used by aByteBufAllocatoror-1if unknown.longusedHeapMemory()Returns the number of bytes of heap memory used by aByteBufAllocatoror-1if unknown.
-
-
-
Field Detail
-
directCounter
final LongCounter directCounter
-
heapCounter
final LongCounter heapCounter
-
-
Method Detail
-
usedHeapMemory
public long usedHeapMemory()
Description copied from interface:ByteBufAllocatorMetricReturns the number of bytes of heap memory used by aByteBufAllocatoror-1if unknown.- Specified by:
usedHeapMemoryin interfaceByteBufAllocatorMetric
-
usedDirectMemory
public long usedDirectMemory()
Description copied from interface:ByteBufAllocatorMetricReturns the number of bytes of direct memory used by aByteBufAllocatoror-1if unknown.- Specified by:
usedDirectMemoryin interfaceByteBufAllocatorMetric
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-