Class AsyncWorkflowPollTask

java.lang.Object
io.temporal.internal.worker.AsyncWorkflowPollTask
All Implemented Interfaces:
io.temporal.internal.worker.AsyncPoller.PollTaskAsync<WorkflowTask>

public class AsyncWorkflowPollTask extends Object implements io.temporal.internal.worker.AsyncPoller.PollTaskAsync<WorkflowTask>
  • Constructor Details

    • AsyncWorkflowPollTask

      public AsyncWorkflowPollTask(@Nonnull io.temporal.serviceclient.WorkflowServiceStubs service, @Nonnull String namespace, @Nonnull String taskQueue, @Nullable String stickyTaskQueue, @Nonnull String identity, @Nonnull String workerInstanceKey, @Nonnull WorkerVersioningOptions versioningOptions, @Nonnull TrackingSlotSupplier<WorkflowSlotInfo> slotSupplier, @Nonnull com.uber.m3.tally.Scope metricsScope, @Nonnull Supplier<io.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities> serverCapabilities, @Nonnull PollerTracker pollerTracker, String workerControlTaskQueue)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • poll

      public CompletableFuture<WorkflowTask> poll(SlotPermit permit) throws io.temporal.internal.worker.AsyncPoller.PollTaskAsyncAbort
      Specified by:
      poll in interface io.temporal.internal.worker.AsyncPoller.PollTaskAsync<WorkflowTask>
      Throws:
      io.temporal.internal.worker.AsyncPoller.PollTaskAsyncAbort
    • cancel

      public void cancel(Throwable cause)
      Specified by:
      cancel in interface io.temporal.internal.worker.AsyncPoller.PollTaskAsync<WorkflowTask>
    • disableNormalPoll

      public void disableNormalPoll()
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface io.temporal.internal.worker.AsyncPoller.PollTaskAsync<WorkflowTask>