Class DefaultDownload<ReturnT>
- java.lang.Object
-
- software.amazon.awssdk.transfer.s3.internal.model.DefaultDownload<ReturnT>
-
- All Implemented Interfaces:
Download<ReturnT>,ObjectTransfer,Transfer
public final class DefaultDownload<ReturnT> extends Object implements Download<ReturnT>
-
-
Constructor Summary
Constructors Constructor Description DefaultDownload(CompletableFuture<CompletedDownload<ReturnT>> completionFuture, TransferProgress progress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<CompletedDownload<ReturnT>>completionFuture()booleanequals(Object o)inthashCode()TransferProgressprogress()The statefulTransferProgressassociated with this transfer.StringtoString()
-
-
-
Constructor Detail
-
DefaultDownload
public DefaultDownload(CompletableFuture<CompletedDownload<ReturnT>> completionFuture, TransferProgress progress)
-
-
Method Detail
-
completionFuture
public CompletableFuture<CompletedDownload<ReturnT>> completionFuture()
- Specified by:
completionFuturein interfaceDownload<ReturnT>- Specified by:
completionFuturein interfaceTransfer- Returns:
- The future that will be completed when this transfer is complete.
-
progress
public TransferProgress progress()
Description copied from interface:ObjectTransferThe statefulTransferProgressassociated with this transfer.- Specified by:
progressin interfaceObjectTransfer
-
-