Interface PhysicalResource

All Superinterfaces:
Resource, SizedResource<PhysicalUsageEvent>
All Known Subinterfaces:
DiskResource, OffHeapResource

public interface PhysicalResource extends SizedResource<PhysicalUsageEvent>
  • Method Details

    • getUsed

      long getUsed()
      Returns:
      the current usage of the resource. It will actually be the shared usage across various entities including both terracotta/non-terracotta entities using the same resource.
    • getTotal

      long getTotal()
      Returns:
      the total capacity of the resource.
    • getAvailable

      long getAvailable()
      Returns:
      the remaining space of the resource which can be consumed.