A resource meter with a current value and a ResourceType.
Refer to the concrete meter subtypes for additional useful semantics.
The meter has a current value that tracks net allocations and releases
and a count of cumulative allocations and counts only allocations.
Meter behavior can be extended or customized by subclassing
the concrete implementations or implementing this interface.
Returns the current net value of the ResourceMeter.
Method Detail
getValue
long getValue()
Returns the current net value of the ResourceMeter.
The net value is the difference between the cumulative amounts
allocated minus all amounts released.
Returns:
the current net value of the meter
getAllocated
long getAllocated()
Returns the cumulative total of allocations from the ResourceMeter.