Class ActivityTask
java.lang.Object
io.temporal.internal.worker.ActivityTask
- All Implemented Interfaces:
ScalingTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.temporal.internal.worker.ScalingTask
ScalingTask.ScalingDecision -
Constructor Summary
ConstructorsConstructorDescriptionActivityTask(io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuilder response, SlotPermit permit, Functions.Proc completionCallback) -
Method Summary
Modifier and TypeMethodDescriptionCompletion handle function that must be called by the handler whenever activity processing is completed.io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuilderReturns a scaling decision from the task.
-
Constructor Details
-
ActivityTask
public ActivityTask(@Nonnull io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuilder response, @Nonnull SlotPermit permit, @Nonnull Functions.Proc completionCallback)
-
-
Method Details
-
getResponse
@Nonnull public io.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseOrBuilder getResponse() -
getCompletionCallback
Completion handle function that must be called by the handler whenever activity processing is completed. -
getPermit
-
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.
-