Package io.temporal.internal.worker
Class ActivityTask
- java.lang.Object
-
- io.temporal.internal.worker.ActivityTask
-
- All Implemented Interfaces:
ScalingTask
public final class ActivityTask 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 ActivityTask(io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuilder response, SlotPermit permit, Functions.Proc completionCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Functions.ProcgetCompletionCallback()Completion handle function that must be called by the handler whenever activity processing is completed.SlotPermitgetPermit()io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuildergetResponse()ScalingTask.ScalingDecisiongetScalingDecision()Returns a scaling decision from the task.
-
-
-
Constructor Detail
-
ActivityTask
public ActivityTask(@Nonnull io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuilder response, @Nonnull SlotPermit permit, @Nonnull Functions.Proc completionCallback)
-
-
Method Detail
-
getResponse
@Nonnull public io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuilder getResponse()
-
getCompletionCallback
@Nonnull public Functions.Proc getCompletionCallback()
Completion handle function that must be called by the handler whenever activity processing is completed.
-
getPermit
@Nonnull public SlotPermit getPermit()
-
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.
-
-