public final class CrtFileUpload extends Object implements FileUpload
| Constructor and Description |
|---|
CrtFileUpload(CompletableFuture<CompletedFileUpload> completionFuture,
TransferProgress progress,
S3MetaRequestPauseObservable observable,
UploadFileRequest request) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<CompletedFileUpload> |
completionFuture() |
boolean |
equals(Object o) |
int |
hashCode() |
ResumableFileUpload |
pause()
Pauses the current upload operation and return the information that can
be used to resume the upload at a later time.
|
TransferProgress |
progress()
The stateful
TransferProgress associated with this transfer. |
String |
toString() |
public CrtFileUpload(CompletableFuture<CompletedFileUpload> completionFuture, TransferProgress progress, S3MetaRequestPauseObservable observable, UploadFileRequest request)
public ResumableFileUpload pause()
FileUpload
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 via
S3AsyncClient.crtBuilder() or S3AsyncClient.crtCreate()).
It will throw UnsupportedOperationException if the S3TransferManager is created
with a non CRT-based S3 client (created via S3AsyncClient.builder()).
pause in interface FileUploadResumableFileUpload that can be used to resume the upload.public CompletableFuture<CompletedFileUpload> completionFuture()
completionFuture in interface FileUploadcompletionFuture in interface Transferpublic TransferProgress progress()
ObjectTransferTransferProgress associated with this transfer.progress in interface ObjectTransferCopyright © 2023. All rights reserved.