Class DefaultFileDownload
- java.lang.Object
-
- software.amazon.awssdk.transfer.s3.internal.model.DefaultFileDownload
-
- All Implemented Interfaces:
FileDownload,ObjectTransfer,Transfer
public final class DefaultFileDownload extends Object implements FileDownload
-
-
Constructor Summary
Constructors Constructor Description DefaultFileDownload(CompletableFuture<CompletedFileDownload> completedFileDownloadFuture, TransferProgress progress, Supplier<DownloadFileRequest> requestSupplier, ResumableFileDownload resumedDownload)
-
Method Summary
All Methods Instance Methods Concrete 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.TransferProgressprogress()The statefulTransferProgressassociated with this transfer.StringtoString()
-
-
-
Constructor Detail
-
DefaultFileDownload
public DefaultFileDownload(CompletableFuture<CompletedFileDownload> completedFileDownloadFuture, TransferProgress progress, Supplier<DownloadFileRequest> requestSupplier, ResumableFileDownload resumedDownload)
-
-
Method Detail
-
progress
public TransferProgress progress()
Description copied from interface:ObjectTransferThe statefulTransferProgressassociated with this transfer.- Specified by:
progressin interfaceObjectTransfer
-
pause
public ResumableFileDownload pause()
Description copied from interface:FileDownloadPause 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.- Specified by:
pausein interfaceFileDownload- Returns:
- A
ResumableFileDownloadthat can be used to resume the download.
-
completionFuture
public CompletableFuture<CompletedFileDownload> completionFuture()
- Specified by:
completionFuturein interfaceFileDownload- Specified by:
completionFuturein interfaceTransfer- Returns:
- The future that will be completed when this transfer is complete.
-
-