Class DefaultFileDownload
java.lang.Object
software.amazon.awssdk.transfer.s3.internal.model.DefaultFileDownload
- All Implemented Interfaces:
FileDownload
,ObjectTransfer
,Transfer
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFileDownload
(CompletableFuture<CompletedFileDownload> completedFileDownloadFuture, TransferProgress progress, Supplier<DownloadFileRequest> requestSupplier, ResumableFileDownload resumedDownload) -
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.progress()
The statefulTransferProgress
associated with this transfer.toString()
-
Constructor Details
-
DefaultFileDownload
public DefaultFileDownload(CompletableFuture<CompletedFileDownload> completedFileDownloadFuture, TransferProgress progress, Supplier<DownloadFileRequest> requestSupplier, ResumableFileDownload resumedDownload)
-
-
Method Details
-
progress
Description copied from interface:ObjectTransfer
The statefulTransferProgress
associated with this transfer.- Specified by:
progress
in interfaceObjectTransfer
-
pause
Description copied from interface:FileDownload
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.- Specified by:
pause
in interfaceFileDownload
- Returns:
- A
ResumableFileDownload
that can be used to resume the download.
-
completionFuture
- Specified by:
completionFuture
in interfaceFileDownload
- Specified by:
completionFuture
in interfaceTransfer
- Returns:
- The future that will be completed when this transfer is complete.
-
toString
-