public class AllocatorMetric extends DefaultAllocatorMetric
Constructor and Description |
---|
AllocatorMetric() |
Modifier and Type | Method and Description |
---|---|
void |
allocated(int capacity)
Called when a true allocation (not taken from a cache or a pool) was
performed by the associated allocator.
|
long |
getAllocatedSize() |
allocating, ensure, ensureSome, extend, getAllocatedCount, getAllocatingCount, getEnsureCount, getEnsureSomeCount, getExtendCount, getMaxCapacity, getReduceCount, getReleasedCount, getReleasingCount, reduce, released, releasing
public void allocated(int capacity)
IDefaultAllocatorMetricCollector
allocated
in interface IDefaultAllocatorMetricCollector
allocated
in class DefaultAllocatorMetric
capacity
- capacity of the allocated bufferpublic long getAllocatedSize()
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.