Class TaskAssignmentUtils.RackAwareOptimizationParams
java.lang.Object
org.apache.kafka.streams.processor.assignment.TaskAssignmentUtils.RackAwareOptimizationParams
- Enclosing class:
- TaskAssignmentUtils
A simple config container for necessary parameters and optional overrides to apply when
 running the active or standby task rack-aware optimizations.
- 
Method SummaryModifier and TypeMethodDescriptionReturn a new config object with the tasksToOptimize set to all stateful tasks in the given ApplicationStateReturn a new config object with the tasksToOptimize set to all stateless tasks in the given ApplicationStateReturn a new config object with the provided tasksToOptimizeof(ApplicationState applicationState) Return a new config object with no overrides and the tasksToOptimize initialized to the set of all tasks in the given ApplicationStatewithNonOverlapCostOverride(int nonOverlapCostOverride) Return a new config object with the provided nonOverlapCost override appliedwithTrafficCostOverride(int trafficCostOverride) Return a new config object with the provided trafficCost override applied
- 
Method Details- 
ofReturn a new config object with no overrides and the tasksToOptimize initialized to the set of all tasks in the given ApplicationState
- 
forStatefulTasksReturn a new config object with the tasksToOptimize set to all stateful tasks in the given ApplicationState
- 
forStatelessTasksReturn a new config object with the tasksToOptimize set to all stateless tasks in the given ApplicationState
- 
forTasksReturn a new config object with the provided tasksToOptimize
- 
withTrafficCostOverridepublic TaskAssignmentUtils.RackAwareOptimizationParams withTrafficCostOverride(int trafficCostOverride) Return a new config object with the provided trafficCost override applied
- 
withNonOverlapCostOverridepublic TaskAssignmentUtils.RackAwareOptimizationParams withNonOverlapCostOverride(int nonOverlapCostOverride) Return a new config object with the provided nonOverlapCost override applied
 
-