Package com.terracottatech.store.usage
Interface PhysicalResource
- All Superinterfaces:
Resource
,SizedResource<PhysicalUsageEvent>
- All Known Subinterfaces:
DiskResource
,OffHeapResource
-
Method Summary
Methods inherited from interface com.terracottatech.store.usage.Resource
getIdentifier, getType
Methods inherited from interface com.terracottatech.store.usage.SizedResource
deRegisterUsageListener, getOccupancy, registerUsageListener
-
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.
-