Class WorkflowTask

java.lang.Object
io.temporal.internal.worker.WorkflowTask
All Implemented Interfaces:
ScalingTask

public class WorkflowTask extends Object implements ScalingTask
  • Constructor Details

    • WorkflowTask

      public WorkflowTask(@Nonnull io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse response, @Nonnull Functions.Proc1<SlotReleaseReason> completionCallback)
  • Method Details

    • 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: ScalingTask
      Returns a scaling decision from the task. The decision may be null if no scaling action is needed or not supported.
      Specified by:
      getScalingDecision in interface ScalingTask
      Returns:
      a ScalingDecision object containing the scaling suggestion, or null if no action is needed not supported.