Interface DittoDiskUsageCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DittoDiskUsageCallback

Callback interface for receiving disk usage updates.

Implement this interface to be notified when Ditto's disk usage changes. Register callbacks using DittoDiskUsage.observe(DittoDiskUsageCallback).

Example usage:

`DittoDiskUsageCallback callback = event ->{System.out.println("Disk usage: " + event.getFileSystemUsageInfo().getTotalBytes() + " bytes");};AutoCloseable observer = ditto.getDiskUsage().observe(callback);`
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onUpdate(@NonNull DittoDiskUsageItem event)
    Called when disk usage information is updated.
  • Method Details

    • onUpdate

      void onUpdate(@NonNull DittoDiskUsageItem event)

      Called when disk usage information is updated.

      This method is invoked regularly with the latest disk usage statistics.

      Parameters:
      event - the DittoDiskUsageItem containing updated disk usage information.