Interface StorageUsage


public interface StorageUsage
Provides access to storage usage information
  • Method Details

    • getTotalSpace

      Optional<Long> getTotalSpace()
      Gets the total space of storage in Bytes
      Returns:
      Number of all bytes in storage
    • getUsableSpace

      Optional<Long> getUsableSpace()
      Gets the available space of storage in Bytes This is free storage that is not reserved
      Returns:
      Number of available bytes in storage
    • getUsedSpace

      Optional<Long> getUsedSpace()
      Gets the used space of storage in Bytes
      Returns:
      Number of used bytes in storage