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)
IDefaultAllocatorMetricCollector
allocating
in interface IDefaultAllocatorMetricCollector
capacity
- requested capacity of the buffer to be allocatedpublic void allocated(int capacity)
IDefaultAllocatorMetricCollector
allocated
in interface IDefaultAllocatorMetricCollector
capacity
- capacity of the allocated bufferpublic void released(int capacity)
IDefaultAllocatorMetricCollector
released
in interface IDefaultAllocatorMetricCollector
capacity
- capacity of the released bufferpublic void releasing(int capacity)
IDefaultAllocatorMetricCollector
releasing
in interface IDefaultAllocatorMetricCollector
capacity
- capacity of the releasing bufferpublic void ensureSome()
IDefaultAllocatorMetricCollector
ensureSome
method in
the associated allocator.ensureSome
in interface IDefaultAllocatorMetricCollector
public void ensure()
IDefaultAllocatorMetricCollector
ensure
method in
the associated allocator.ensure
in interface IDefaultAllocatorMetricCollector
public void reduce()
IDefaultAllocatorMetricCollector
reduce
method in
the associated allocator.reduce
in interface IDefaultAllocatorMetricCollector
public void extend()
IDefaultAllocatorMetricCollector
extend
method in
the associated allocator.extend
in interface IDefaultAllocatorMetricCollector
public 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–2021 SNF4J.ORG. All rights reserved.