Interface DiskConsumable

    • Method Detail

      • useDifference

        boolean useDifference()
        If this item reports the difference in used bytes or the absolute number.
        Returns:
        TRUE if the item reports the difference, FALSE if it reports the absolute
        See Also:
        getBytes(), getDifference()
      • getBytes

        long getBytes()
        Get the absolute number of bytes this item uses. All items must report this number.
        Returns:
        The absolute number of bytes the item uses
        See Also:
        useDifference(), getDifference()
      • getDifference

        long getDifference()
        Get the number of bytes this items now is using compared to when it was loaded from the database. This number may be negative if the item is now using less bytes than before. An item doesn't have to report this value if useDifference() returns FALSE.
        Returns:
        The difference in bytes between now and when the item was loaded, or 0 if this item doesn't report differences
      • getLocation

        Location getLocation()
        Get the Location the items is stored at.
        Returns:
        The location
      • getQuotaTypeSystemId

        String getQuotaTypeSystemId()
        Get the QuotaType system id of this item. It is not allowed to return the QuotaType.TOTAL quota type.
        Returns:
        The systemid of the QuotaType