Interface WeightedBalancedSchedulingConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WeightedBalancedSchedulingConfiguration.Builder,,WeightedBalancedSchedulingConfiguration> SdkBuilder<WeightedBalancedSchedulingConfiguration.Builder,,WeightedBalancedSchedulingConfiguration> SdkPojo
- Enclosing class:
WeightedBalancedSchedulingConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionerrorWeight(Double errorWeight) The weight applied to the number of errors on a job.maxPriorityOverride(Consumer<SchedulingMaxPriorityOverride.Builder> maxPriorityOverride) Overrides the weighted scheduling formula for jobs at the maximum priority (100).maxPriorityOverride(SchedulingMaxPriorityOverride maxPriorityOverride) Overrides the weighted scheduling formula for jobs at the maximum priority (100).minPriorityOverride(Consumer<SchedulingMinPriorityOverride.Builder> minPriorityOverride) Overrides the weighted scheduling formula for jobs at the minimum priority (0).minPriorityOverride(SchedulingMinPriorityOverride minPriorityOverride) Overrides the weighted scheduling formula for jobs at the minimum priority (0).priorityWeight(Double priorityWeight) The weight applied to job priority in the scheduling formula.renderingTaskBuffer(Integer renderingTaskBuffer) The rendering task buffer is subtracted from the number of rendering tasks before applying the rendering task weight.renderingTaskWeight(Double renderingTaskWeight) The weight applied to the number of tasks currently rendering on a job.submissionTimeWeight(Double submissionTimeWeight) The weight applied to job submission time.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
-
priorityWeight
The weight applied to job priority in the scheduling formula. Higher values give more influence to job priority. A value of
0means priority is ignored. The default value is100.0.- Parameters:
priorityWeight- The weight applied to job priority in the scheduling formula. Higher values give more influence to job priority. A value of0means priority is ignored. The default value is100.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorWeight
The weight applied to the number of errors on a job. A negative value means jobs without errors are scheduled first. A value of
0means errors are ignored. The default value is-10.0.- Parameters:
errorWeight- The weight applied to the number of errors on a job. A negative value means jobs without errors are scheduled first. A value of0means errors are ignored. The default value is-10.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
submissionTimeWeight
The weight applied to job submission time. A positive value means earlier jobs are scheduled first. A value of
0means submission time is ignored. The default value is3.0.- Parameters:
submissionTimeWeight- The weight applied to job submission time. A positive value means earlier jobs are scheduled first. A value of0means submission time is ignored. The default value is3.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
renderingTaskWeight
The weight applied to the number of tasks currently rendering on a job. A negative value means jobs that are not already rendering are scheduled next. A value of
0means the rendering state is ignored. The default value is-100.0.- Parameters:
renderingTaskWeight- The weight applied to the number of tasks currently rendering on a job. A negative value means jobs that are not already rendering are scheduled next. A value of0means the rendering state is ignored. The default value is-100.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
renderingTaskBuffer
The rendering task buffer is subtracted from the number of rendering tasks before applying the rendering task weight. This creates a stickiness effect where workers prefer to stay with their current job. Higher values make workers stickier. The default value is
1. The buffer is only applied in the weight calculation for a job if the worker is currently assigned to that job.- Parameters:
renderingTaskBuffer- The rendering task buffer is subtracted from the number of rendering tasks before applying the rendering task weight. This creates a stickiness effect where workers prefer to stay with their current job. Higher values make workers stickier. The default value is1. The buffer is only applied in the weight calculation for a job if the worker is currently assigned to that job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxPriorityOverride
WeightedBalancedSchedulingConfiguration.Builder maxPriorityOverride(SchedulingMaxPriorityOverride maxPriorityOverride) Overrides the weighted scheduling formula for jobs at the maximum priority (100). When set, jobs with priority 100 are always scheduled first regardless of their calculated weight. When absent, maximum priority jobs use the standard weighted formula.
- Parameters:
maxPriorityOverride- Overrides the weighted scheduling formula for jobs at the maximum priority (100). When set, jobs with priority 100 are always scheduled first regardless of their calculated weight. When absent, maximum priority jobs use the standard weighted formula.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxPriorityOverride
default WeightedBalancedSchedulingConfiguration.Builder maxPriorityOverride(Consumer<SchedulingMaxPriorityOverride.Builder> maxPriorityOverride) Overrides the weighted scheduling formula for jobs at the maximum priority (100). When set, jobs with priority 100 are always scheduled first regardless of their calculated weight. When absent, maximum priority jobs use the standard weighted formula.
This is a convenience method that creates an instance of theSchedulingMaxPriorityOverride.Builderavoiding the need to create one manually viaSchedulingMaxPriorityOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomaxPriorityOverride(SchedulingMaxPriorityOverride).- Parameters:
maxPriorityOverride- a consumer that will call methods onSchedulingMaxPriorityOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
minPriorityOverride
WeightedBalancedSchedulingConfiguration.Builder minPriorityOverride(SchedulingMinPriorityOverride minPriorityOverride) Overrides the weighted scheduling formula for jobs at the minimum priority (0). When set, jobs with priority 0 are always scheduled last regardless of their calculated weight. When absent, minimum priority jobs use the standard weighted formula.
- Parameters:
minPriorityOverride- Overrides the weighted scheduling formula for jobs at the minimum priority (0). When set, jobs with priority 0 are always scheduled last regardless of their calculated weight. When absent, minimum priority jobs use the standard weighted formula.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minPriorityOverride
default WeightedBalancedSchedulingConfiguration.Builder minPriorityOverride(Consumer<SchedulingMinPriorityOverride.Builder> minPriorityOverride) Overrides the weighted scheduling formula for jobs at the minimum priority (0). When set, jobs with priority 0 are always scheduled last regardless of their calculated weight. When absent, minimum priority jobs use the standard weighted formula.
This is a convenience method that creates an instance of theSchedulingMinPriorityOverride.Builderavoiding the need to create one manually viaSchedulingMinPriorityOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tominPriorityOverride(SchedulingMinPriorityOverride).- Parameters:
minPriorityOverride- a consumer that will call methods onSchedulingMinPriorityOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-