Class UploadWithKnownContentLengthHelper
java.lang.Object
software.amazon.awssdk.services.s3.internal.multipart.UploadWithKnownContentLengthHelper
An internal helper class that automatically uses multipart upload based on the size of the object.
-
Constructor Summary
ConstructorDescriptionUploadWithKnownContentLengthHelper
(S3AsyncClient s3AsyncClient, long partSizeInBytes, long multipartUploadThresholdInBytes, long maxMemoryUsageInBytes) -
Method Summary
Modifier and TypeMethodDescriptionuploadObject
(PutObjectRequest putObjectRequest, AsyncRequestBody asyncRequestBody, long contentLength)
-
Constructor Details
-
UploadWithKnownContentLengthHelper
public UploadWithKnownContentLengthHelper(S3AsyncClient s3AsyncClient, long partSizeInBytes, long multipartUploadThresholdInBytes, long maxMemoryUsageInBytes)
-
-
Method Details
-
uploadObject
public CompletableFuture<PutObjectResponse> uploadObject(PutObjectRequest putObjectRequest, AsyncRequestBody asyncRequestBody, long contentLength)
-