Class LogProgressCallback
java.lang.Object
com.amilesend.client.connection.file.LogProgressCallback
- All Implemented Interfaces:
- TransferProgressCallback
A log-based implementation of 
TransferProgressCallback that logs transfer progress.- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enumDescribes that transfer type used for logging progress.
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()static StringformatPrefix(String source, String destination) Helper method to format the logging prefix to use.voidonComplete(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- 
formatPrefix
- 
onUpdatepublic void onUpdate(long currentBytes, long totalBytes) Description copied from interface:TransferProgressCallbackCallback to notify consumers of the current amount of bytes that have transferred.- Specified by:
- onUpdatein interface- TransferProgressCallback
- Parameters:
- currentBytes- the current amount of accumulative bytes transferred thus far
- totalBytes- the total amount of bytes for the transfer
 
- 
onFailureDescription copied from interface:TransferProgressCallbackCallback to notify consumers of a failure during a transfer.- Specified by:
- onFailurein interface- TransferProgressCallback
- Parameters:
- cause- the cause of the failure
 
- 
onCompletepublic void onComplete(long bytesTransferred) Description copied from interface:TransferProgressCallbackCallback to notify consumers of a completed transfer.- Specified by:
- onCompletein interface- TransferProgressCallback
- Parameters:
- bytesTransferred- the total bytes transfered
 
- 
builder
 
-