Class DefaultFileUpload
java.lang.Object
software.amazon.awssdk.transfer.s3.internal.model.DefaultFileUpload
- All Implemented Interfaces:
FileUpload
,ObjectTransfer
,Transfer
-
Constructor Summary
ConstructorDescriptionDefaultFileUpload
(CompletableFuture<CompletedFileUpload> completionFuture, TransferProgress progress, PauseObservable pauseObservable, UploadFileRequest request) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
pause()
Pauses the current upload operation and return the information that can be used to resume the upload at a later time.progress()
The statefulTransferProgress
associated with this transfer.toString()
-
Constructor Details
-
DefaultFileUpload
public DefaultFileUpload(CompletableFuture<CompletedFileUpload> completionFuture, TransferProgress progress, PauseObservable pauseObservable, UploadFileRequest request)
-
-
Method Details
-
pause
Description copied from interface:FileUpload
Pauses the current upload operation and return the information that can be used to resume the upload at a later time.The information object is serializable for persistent storage until it should be resumed. See
ResumableFileUpload
for supported formats.Currently, it's only supported if the underlying
S3AsyncClient
is CRT-based (created viaS3AsyncClient.crtBuilder()
orS3AsyncClient.crtCreate()
), OR the underlyingS3AsyncClient
has multipart enabled (S3AsyncClientBuilder.multipartConfiguration(MultipartConfiguration)
orS3AsyncClientBuilder.multipartEnabled(Boolean)
). It will throwUnsupportedOperationException
if theS3TransferManager
is created with a non CRT-based S3 client (created viaS3AsyncClient.builder()
) and does not have multipart configuration enabled.- Specified by:
pause
in interfaceFileUpload
- Returns:
- A
ResumableFileUpload
that can be used to resume the upload.
-
completionFuture
- Specified by:
completionFuture
in interfaceFileUpload
- Specified by:
completionFuture
in interfaceTransfer
- Returns:
- The future that will be completed when this transfer is complete.
-
progress
Description copied from interface:ObjectTransfer
The statefulTransferProgress
associated with this transfer.- Specified by:
progress
in interfaceObjectTransfer
-
equals
-
hashCode
public int hashCode() -
toString
-