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.
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 TypeMethodDescriptionvoidonUpdate(@NonNull DittoDiskUsageItem event) Called when disk usage information is updated.
-
Method Details
-
onUpdate
Called when disk usage information is updated.
This method is invoked regularly with the latest disk usage statistics.
- Parameters:
event- theDittoDiskUsageItemcontaining updated disk usage information.
-