Class MultipartConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.s3.multipart.MultipartConfiguration
-
- All Implemented Interfaces:
ToCopyableBuilder<MultipartConfiguration.Builder,MultipartConfiguration>
public final class MultipartConfiguration extends Object implements ToCopyableBuilder<MultipartConfiguration.Builder,MultipartConfiguration>
Class that hold configuration properties related to multipart operation for aS3AsyncClient
. Passing this class to theS3AsyncClientBuilder.multipartConfiguration(MultipartConfiguration)
will enable automatic conversion ofS3AsyncClient.putObject(Consumer, AsyncRequestBody)
,S3AsyncClient.copyObject(CopyObjectRequest)
to their respective multipart operation.Note: The multipart operation for
S3AsyncClient.getObject(GetObjectRequest, AsyncResponseTransformer)
is temporarily disabled and will result in throwing aUnsupportedOperationException
if called when configured for multipart operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MultipartConfiguration.Builder
Builder for aMultipartConfiguration
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
apiCallBufferSizeInBytes()
The maximum memory, in bytes, that the SDK will use to buffer requests content into memory.static MultipartConfiguration.Builder
builder()
Long
minimumPartSizeInBytes()
Indicated the size, in bytes, of each individual part of the part requests.Long
thresholdInBytes()
Indicates the value of the configured threshold, in bytes.MultipartConfiguration.Builder
toBuilder()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
builder
public static MultipartConfiguration.Builder builder()
-
toBuilder
public MultipartConfiguration.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<MultipartConfiguration.Builder,MultipartConfiguration>
-
thresholdInBytes
public Long thresholdInBytes()
Indicates the value of the configured threshold, in bytes. Any request whose size is less than the configured value will not use multipart operation- Returns:
- the value of the configured threshold.
-
minimumPartSizeInBytes
public Long minimumPartSizeInBytes()
Indicated the size, in bytes, of each individual part of the part requests. The actual part size used might be bigger to conforms to the maximum number of parts allowed per multipart requests.- Returns:
- the value of the configured part size.
-
apiCallBufferSizeInBytes
public Long apiCallBufferSizeInBytes()
The maximum memory, in bytes, that the SDK will use to buffer requests content into memory.- Returns:
- the value of the configured maximum memory usage.
-
-