Class ParallelConfig.Builder
java.lang.Object
software.amazon.lambda.durable.config.ParallelConfig.Builder
- Enclosing class:
- ParallelConfig
Builder for creating ParallelConfig instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ParallelConfig instance.completionConfig(CompletionConfig completionConfig) Sets the maximum number of branches that can run simultaneously.maxConcurrency(Integer maxConcurrency) Sets the maximum number of branches that can run simultaneously.
-
Method Details
-
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
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
Builds the ParallelConfig instance.- Returns:
- a new ParallelConfig with the configured options
- Throws:
IllegalArgumentException- if any configuration values are invalid
-