Interface TransferProgressCallback
- All Known Implementing Classes:
LogProgressCallback
public interface TransferProgressCallback
The interface that is invoked during file upload/download transfers that enables client consumers to
inspect the progress of the transfer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(long bytesTransferred) Callback to notify consumers of a completed transfer.voidCallback to notify consumers of a failure during a transfer.voidonUpdate(long currentBytes, long totalBytes) Callback to notify consumers of the current amount of bytes that have transferred.
-
Method Details
-
onUpdate
void onUpdate(long currentBytes, long totalBytes) Callback to notify consumers of the current amount of bytes that have transferred.- Parameters:
currentBytes- the current amount of accumulative bytes transferred thus fartotalBytes- the total amount of bytes for the transfer
-
onFailure
Callback to notify consumers of a failure during a transfer.- Parameters:
cause- the cause of the failure
-
onComplete
void onComplete(long bytesTransferred) Callback to notify consumers of a completed transfer.- Parameters:
bytesTransferred- the total bytes transfered
-