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.

  • Constructor Details

  • Method Details

    • 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 AsyncResponseTransformer supports parallel split.

      Defaults to 50.

      Returns:
      The value for the maximum number of concurrent part requests.
    • toBuilder

      public ParallelConfiguration.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ParallelConfiguration.Builder,ParallelConfiguration>
      Returns:
      a builder for type T