Package io.temporal.internal.worker
Class WorkflowTask
- java.lang.Object
-
- io.temporal.internal.worker.WorkflowTask
-
- All Implemented Interfaces:
ScalingTask
public class WorkflowTask extends java.lang.Object implements ScalingTask
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.temporal.internal.worker.ScalingTask
ScalingTask.ScalingDecision
-
-
Constructor Summary
Constructors Constructor Description WorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse response, Functions.Proc1<SlotReleaseReason> completionCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Functions.Proc1<SlotReleaseReason>getCompletionCallback()Completion handle function that must be called by the handler whenever workflow processing is completed.io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponsegetResponse()ScalingTask.ScalingDecisiongetScalingDecision()Returns a scaling decision from the task.
-
-
-
Constructor Detail
-
WorkflowTask
public WorkflowTask(@Nonnull io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse response, @Nonnull Functions.Proc1<SlotReleaseReason> completionCallback)
-
-
Method Detail
-
getResponse
@Nonnull public io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse getResponse()
-
getCompletionCallback
@Nonnull public Functions.Proc1<SlotReleaseReason> getCompletionCallback()
Completion handle function that must be called by the handler whenever workflow processing is completed.
-
getScalingDecision
@Nullable public ScalingTask.ScalingDecision getScalingDecision()
Description copied from interface:ScalingTaskReturns a scaling decision from the task. The decision may be null if no scaling action is needed or not supported.- Specified by:
getScalingDecisionin interfaceScalingTask- Returns:
- a ScalingDecision object containing the scaling suggestion, or null if no action is needed not supported.
-
-