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