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
ResumableFileDownload
for supported formats.- Returns:
- A
ResumableFileDownload
that can be used to resume the download.
-
completionFuture
CompletableFuture<CompletedFileDownload> completionFuture()- Specified by:
completionFuture
in interfaceTransfer
- Returns:
- The future that will be completed when this transfer is complete.
-