Interface FileDownload
-
- All Superinterfaces:
ObjectTransfer,Transfer
- All Known Implementing Classes:
DefaultFileDownload
@ThreadSafe public interface FileDownload extends ObjectTransfer
A download transfer of a single object from S3.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<CompletedFileDownload>completionFuture()ResumableFileDownloadpause()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 Detail
-
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.
-
-