Interface SchedulingConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SchedulingConfiguration.Builder,,SchedulingConfiguration> SdkBuilder<SchedulingConfiguration.Builder,,SchedulingConfiguration> SdkPojo
- Enclosing class:
SchedulingConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault SchedulingConfiguration.BuilderpriorityBalanced(Consumer<PriorityBalancedSchedulingConfiguration.Builder> priorityBalanced) Workers are distributed evenly across all jobs at the highest priority level.priorityBalanced(PriorityBalancedSchedulingConfiguration priorityBalanced) Workers are distributed evenly across all jobs at the highest priority level.default SchedulingConfiguration.BuilderpriorityFifo(Consumer<PriorityFifoSchedulingConfiguration.Builder> priorityFifo) Workers are assigned to the highest-priority job first.priorityFifo(PriorityFifoSchedulingConfiguration priorityFifo) Workers are assigned to the highest-priority job first.default SchedulingConfiguration.BuilderweightedBalanced(Consumer<WeightedBalancedSchedulingConfiguration.Builder> weightedBalanced) Workers are assigned to jobs based on a weighted formula that considers job priority, error count, submission time, and the number of tasks currently rendering.weightedBalanced(WeightedBalancedSchedulingConfiguration weightedBalanced) Workers are assigned to jobs based on a weighted formula that considers job priority, error count, submission time, and the number of tasks currently rendering.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
priorityFifo
Workers are assigned to the highest-priority job first. When multiple jobs share the same priority, the job submitted earliest receives workers first. This is the default scheduling configuration for new queues.
- Parameters:
priorityFifo- Workers are assigned to the highest-priority job first. When multiple jobs share the same priority, the job submitted earliest receives workers first. This is the default scheduling configuration for new queues.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priorityFifo
default SchedulingConfiguration.Builder priorityFifo(Consumer<PriorityFifoSchedulingConfiguration.Builder> priorityFifo) Workers are assigned to the highest-priority job first. When multiple jobs share the same priority, the job submitted earliest receives workers first. This is the default scheduling configuration for new queues.
This is a convenience method that creates an instance of thePriorityFifoSchedulingConfiguration.Builderavoiding the need to create one manually viaPriorityFifoSchedulingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topriorityFifo(PriorityFifoSchedulingConfiguration).- Parameters:
priorityFifo- a consumer that will call methods onPriorityFifoSchedulingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priorityBalanced
SchedulingConfiguration.Builder priorityBalanced(PriorityBalancedSchedulingConfiguration priorityBalanced) Workers are distributed evenly across all jobs at the highest priority level. When workers cannot be evenly divided, the extra workers are assigned to the jobs submitted earliest. If a job has fewer remaining tasks than its share of workers, the surplus workers are redistributed to other jobs at the same priority level.
- Parameters:
priorityBalanced- Workers are distributed evenly across all jobs at the highest priority level. When workers cannot be evenly divided, the extra workers are assigned to the jobs submitted earliest. If a job has fewer remaining tasks than its share of workers, the surplus workers are redistributed to other jobs at the same priority level.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priorityBalanced
default SchedulingConfiguration.Builder priorityBalanced(Consumer<PriorityBalancedSchedulingConfiguration.Builder> priorityBalanced) Workers are distributed evenly across all jobs at the highest priority level. When workers cannot be evenly divided, the extra workers are assigned to the jobs submitted earliest. If a job has fewer remaining tasks than its share of workers, the surplus workers are redistributed to other jobs at the same priority level.
This is a convenience method that creates an instance of thePriorityBalancedSchedulingConfiguration.Builderavoiding the need to create one manually viaPriorityBalancedSchedulingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topriorityBalanced(PriorityBalancedSchedulingConfiguration).- Parameters:
priorityBalanced- a consumer that will call methods onPriorityBalancedSchedulingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
weightedBalanced
SchedulingConfiguration.Builder weightedBalanced(WeightedBalancedSchedulingConfiguration weightedBalanced) Workers are assigned to jobs based on a weighted formula that considers job priority, error count, submission time, and the number of tasks currently rendering. Each factor has a configurable weight that determines its influence on scheduling decisions.
- Parameters:
weightedBalanced- Workers are assigned to jobs based on a weighted formula that considers job priority, error count, submission time, and the number of tasks currently rendering. Each factor has a configurable weight that determines its influence on scheduling decisions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weightedBalanced
default SchedulingConfiguration.Builder weightedBalanced(Consumer<WeightedBalancedSchedulingConfiguration.Builder> weightedBalanced) Workers are assigned to jobs based on a weighted formula that considers job priority, error count, submission time, and the number of tasks currently rendering. Each factor has a configurable weight that determines its influence on scheduling decisions.
This is a convenience method that creates an instance of theWeightedBalancedSchedulingConfiguration.Builderavoiding the need to create one manually viaWeightedBalancedSchedulingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toweightedBalanced(WeightedBalancedSchedulingConfiguration).- Parameters:
weightedBalanced- a consumer that will call methods onWeightedBalancedSchedulingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-