Package io.temporal.internal.worker
Interface ScalingTask
-
- All Known Implementing Classes:
ActivityTask,NexusTask,WorkflowTask
public interface ScalingTaskInterface for tasks that can provide scaling feedback from the server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classScalingTask.ScalingDecisionRepresents a scaling decision made by the task.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScalingTask.ScalingDecisiongetScalingDecision()Returns a scaling decision from the task.
-
-
-
Method Detail
-
getScalingDecision
@Nullable ScalingTask.ScalingDecision getScalingDecision()
Returns a scaling decision from the task. The decision may be null if no scaling action is needed or not supported.- Returns:
- a ScalingDecision object containing the scaling suggestion, or null if no action is needed not supported.
-
-