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 TypeMethodDescriptionvoid
onComplete
(long bytesTransferred) Callback to notify consumers of a completed transfer.void
Callback to notify consumers of a failure during a transfer.void
onUpdate
(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
-