public class DefaultAllocatorMetric extends Object implements IDefaultAllocatorMetricCollector
DefaultAllocator.| Constructor and Description |
|---|
DefaultAllocatorMetric() |
| 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.
|
void |
allocating(int capacity)
Called when an allocation was performed by the associated allocator.
|
void |
ensure()
Called when allocation was performed as a result of calling
the
ensure method in
the associated allocator. |
void |
ensureSome()
Called when allocation was performed as a result of calling
the
ensureSome method in
the associated allocator. |
void |
extend()
Called when allocation was performed as a result of calling
the
extend method in
the associated allocator. |
long |
getAllocatedCount()
Gets the total number of true allocations that have been performed by the
associated allocator.
|
long |
getAllocatingCount()
Gets the total number of allocations that have been performed by
the associated allocator.
|
long |
getEnsureCount()
Gets the total number of re-allocations that have been performed by
the
ensure method in
the associated allocator. |
long |
getEnsureSomeCount()
Gets the total number of re-allocations that have been performed by
the
ensureSome method in
the associated allocator. |
long |
getExtendCount()
Gets the total number of re-allocations that have been performed by
the
extend method in
the associated allocator. |
int |
getMaxCapacity()
Gets the capacity of the biggest buffer allocated by the associated allocator.
|
long |
getReduceCount()
Gets the total number of re-allocations that have been performed by
the
reduce method in
the associated allocator. |
long |
getReleasedCount()
Gets the total number of buffers that have been released by the associated
allocator.
|
long |
getReleasingCount()
Gets the total number of buffers that have been requested for releasing by the
associated allocator.
|
void |
reduce()
Called when allocation was performed as a result of calling
the
reduce method in
the associated allocator. |
void |
released(int capacity)
Called when a buffer was released by the associated
allocator.
|
void |
releasing(int capacity)
Called when a buffer was requested for releasing by the associated
allocator.
|
public void allocating(int capacity)
IDefaultAllocatorMetricCollectorallocating in interface IDefaultAllocatorMetricCollectorcapacity - requested capacity of the buffer to be allocatedpublic void allocated(int capacity)
IDefaultAllocatorMetricCollectorallocated in interface IDefaultAllocatorMetricCollectorcapacity - capacity of the allocated bufferpublic void released(int capacity)
IDefaultAllocatorMetricCollectorreleased in interface IDefaultAllocatorMetricCollectorcapacity - capacity of the released bufferpublic void releasing(int capacity)
IDefaultAllocatorMetricCollectorreleasing in interface IDefaultAllocatorMetricCollectorcapacity - capacity of the releasing bufferpublic void ensureSome()
IDefaultAllocatorMetricCollectorensureSome method in
the associated allocator.ensureSome in interface IDefaultAllocatorMetricCollectorpublic void ensure()
IDefaultAllocatorMetricCollectorensure method in
the associated allocator.ensure in interface IDefaultAllocatorMetricCollectorpublic void reduce()
IDefaultAllocatorMetricCollectorreduce method in
the associated allocator.reduce in interface IDefaultAllocatorMetricCollectorpublic void extend()
IDefaultAllocatorMetricCollectorextend method in
the associated allocator.extend in interface IDefaultAllocatorMetricCollectorpublic long getAllocatingCount()
public long getAllocatedCount()
public long getReleasingCount()
public long getReleasedCount()
public long getEnsureSomeCount()
ensureSome method in
the associated allocator.public long getEnsureCount()
ensure method in
the associated allocator.public long getReduceCount()
reduce method in
the associated allocator.public long getExtendCount()
extend method in
the associated allocator.public int getMaxCapacity()
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.