Class ParallelConfiguration
java.lang.Object
software.amazon.awssdk.services.s3.multipart.ParallelConfiguration
- All Implemented Interfaces:
ToCopyableBuilder<ParallelConfiguration.Builder,ParallelConfiguration>
@SdkPublicApi
public class ParallelConfiguration
extends Object
implements ToCopyableBuilder<ParallelConfiguration.Builder,ParallelConfiguration>
Configuration for parallel multipart operations performed by a
S3AsyncClient.
For uploads (putObject), this configuration applies to all multipart uploads regardless of whether the content length is known.
For downloads (getObject), this configuration applies only when the AsyncResponseTransformer supports
parallel split.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The maximum number of concurrent part requests that are allowed for multipart operations, including both multipart download (GetObject) and multipart upload (PutObject).Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Constructor Details
-
ParallelConfiguration
-
-
Method Details
-
builder
-
maxInFlightParts
The maximum number of concurrent part requests that are allowed for multipart operations, including both multipart download (GetObject) and multipart upload (PutObject). This limits the number of parts that can be in flight at any given time, preventing the client from overwhelming the HTTP connection pool when transferring large objects.For getObject it applies only when the
AsyncResponseTransformersupports parallel split.Defaults to 50.
- Returns:
- The value for the maximum number of concurrent part requests.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ParallelConfiguration.Builder,ParallelConfiguration> - Returns:
- a builder for type T
-