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