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 aS3AsyncClient.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
AsyncResponseTransformersupports parallel split.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParallelConfiguration.Builder
-
Constructor Summary
Constructors Constructor Description ParallelConfiguration(ParallelConfiguration.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParallelConfiguration.Builderbuilder()IntegermaxInFlightParts()The maximum number of concurrent part requests that are allowed for multipart operations, including both multipart download (GetObject) and multipart upload (PutObject).ParallelConfiguration.BuildertoBuilder()-
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
-
-
-
-
Constructor Detail
-
ParallelConfiguration
public ParallelConfiguration(ParallelConfiguration.Builder builder)
-
-
Method Detail
-
builder
public static ParallelConfiguration.Builder builder()
-
maxInFlightParts
public Integer 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
public ParallelConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ParallelConfiguration.Builder,ParallelConfiguration>
-
-