Package org.rostore.entity
Interface BlockAllocation
- All Known Implementing Classes:
BlockAllocationState
public interface BlockAllocation
Information regarding allocation of the blocks with the ro-store components
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get number of bytes that have been free from the allocated data.long
Get number of bytes used by the data.long
Get number of bytes allocated for the data.
-
Method Details
-
getPayloadSize
long getPayloadSize()Get number of bytes used by the data. This data is actively used by some payload.- Returns:
- the size in bytes
-
getTotalLockedSize
long getTotalLockedSize()Get number of bytes allocated for the data. This data is locked and can't be transferred somewhere. Allocated size = Free size + used size or 0.- Returns:
- the size in bytes
-
getLockedFreeSize
long getLockedFreeSize()Get number of bytes that have been free from the allocated data. This data can be used by the payload, but stays effectively locked unused.- Returns:
- the size in bytes
-