Class ParallelConfig.Builder

java.lang.Object
software.amazon.lambda.durable.config.ParallelConfig.Builder
Enclosing class:
ParallelConfig

public static class ParallelConfig.Builder extends Object
Builder for creating ParallelConfig instances.
  • Method Details

    • maxConcurrency

      public ParallelConfig.Builder maxConcurrency(Integer maxConcurrency)
      Sets the maximum number of branches that can run simultaneously.
      Parameters:
      maxConcurrency - the concurrency limit (default: unlimited)
      Returns:
      this builder for method chaining
    • completionConfig

      public ParallelConfig.Builder completionConfig(CompletionConfig completionConfig)
      Sets the maximum number of branches that can run simultaneously.
      Parameters:
      completionConfig - the completion configuration for the parallel operation
      Returns:
      this builder for method chaining
    • build

      public ParallelConfig build()
      Builds the ParallelConfig instance.
      Returns:
      a new ParallelConfig with the configured options
      Throws:
      IllegalArgumentException - if any configuration values are invalid