Interface ResourceMeter

  • All Known Implementing Classes:
    BoundedMeter, NotifyingMeter, SimpleMeter, ThrottledMeter

    @Deprecated(since="10",
                forRemoval=true)
    public interface ResourceMeter
    Deprecated, for removal: This API element is subject to removal in a future version.
    Resource Management is deprecated for removal with no replacement.
    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.
    Since:
    8u40
    See Also:
    SimpleMeter, NotifyingMeter, BoundedMeter, ThrottledMeter
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      long getAllocated()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the cumulative total of allocations from the ResourceMeter.
      ResourceType getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the ResourceType.
      long getValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the current net value of the ResourceMeter.
    • Method Detail

      • getValue

        long getValue()
        Deprecated, for removal: This API element is subject to removal in a future version.
        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()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the cumulative total of allocations from the ResourceMeter.
        Returns:
        the total allocated from the meter
      • getType

        ResourceType getType()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the ResourceType.
        Returns:
        the ResourceType