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()
long
Returns the number of bytes of direct memory used by aByteBufAllocator
or-1
if unknown.long
Returns the number of bytes of heap memory used by aByteBufAllocator
or-1
if unknown.
-
Field Details
-
directCounter
-
heapCounter
-
-
Constructor Details
-
UnpooledByteBufAllocatorMetric
private UnpooledByteBufAllocatorMetric()
-
-
Method Details
-
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
-