Class NexusTask

  • All Implemented Interfaces:
    ScalingTask

    public final class NexusTask
    extends java.lang.Object
    implements ScalingTask
    • Constructor Detail

      • NexusTask

        public NexusTask​(@Nonnull
                         io.temporal.api.workflowservice.v1.PollNexusTaskQueueResponseOrBuilder response,
                         @Nonnull
                         SlotPermit permit,
                         @Nonnull
                         Functions.Proc completionCallback)
    • Method Detail

      • getResponse

        @Nonnull
        public io.temporal.api.workflowservice.v1.PollNexusTaskQueueResponseOrBuilder getResponse()
      • getCompletionCallback

        @Nonnull
        public Functions.Proc getCompletionCallback()
        Completion handle function that must be called by the handler whenever the nexus task processing is completed.
      • getPermit

        @Nonnull
        public SlotPermit getPermit()
      • getScalingDecision

        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.