Interface FileDownload
- All Superinterfaces:
ObjectTransfer,Transfer
- All Known Implementing Classes:
DefaultFileDownload
A download transfer of a single object from S3.
-
Method Summary
Modifier and TypeMethodDescriptionpause()Pause the current download operation and returns the information that can be used to resume the download at a later time.Methods inherited from interface software.amazon.awssdk.transfer.s3.model.ObjectTransfer
progress
-
Method Details
-
pause
ResumableFileDownload pause()Pause the current download operation and returns the information that can be used to resume the download at a later time.The information object is serializable for persistent storage until it should be resumed. See
ResumableFileDownloadfor supported formats.- Returns:
- A
ResumableFileDownloadthat can be used to resume the download.
-
completionFuture
CompletableFuture<CompletedFileDownload> completionFuture()- Specified by:
completionFuturein interfaceTransfer- Returns:
- The future that will be completed when this transfer is complete.
-