- All Known Implementing Classes:
FileInterceptor
public interface ProgressListener
A listener interface for tracking the progress of data transfers (uploads or downloads).
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateProgress(long downloadLength, long totalLength, boolean done) Callback invoked to update the progress of a data transfer.
-
Method Details
-
updateProgress
void updateProgress(long downloadLength, long totalLength, boolean done) Callback invoked to update the progress of a data transfer.- Parameters:
downloadLength- The number of bytes transferred so far.totalLength- The total size of the data in bytes.done-trueif the transfer is complete,falseotherwise.
-