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 Object
implements ByteBufAllocatorMetric
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LongCounter(package private) final LongCounter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()longReturns the number of bytes of direct memory used by aByteBufAllocatoror-1if unknown.longReturns the number of bytes of heap memory used by aByteBufAllocatoror-1if unknown.
-
Field Details
-
directCounter
-
heapCounter
-
-
Constructor Details
-
UnpooledByteBufAllocatorMetric
private UnpooledByteBufAllocatorMetric()
-
-
Method Details
-
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
-