Class ReplayWorkflowTaskHandler

java.lang.Object
io.temporal.internal.replay.ReplayWorkflowTaskHandler
All Implemented Interfaces:
WorkflowTaskHandler

public final class ReplayWorkflowTaskHandler extends Object implements WorkflowTaskHandler
  • Constructor Details

  • Method Details

    • handleWorkflowTask

      public WorkflowTaskHandler.Result handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask) throws Exception
      Description copied from interface: WorkflowTaskHandler
      Handles a single workflow task
      Specified by:
      handleWorkflowTask in interface WorkflowTaskHandler
      Parameters:
      workflowTask - The workflow task to handle.
      Returns:
      One of the possible workflow task replies: RespondWorkflowTaskCompletedRequest, RespondQueryTaskCompletedRequest, RespondWorkflowTaskFailedRequest
      Throws:
      Exception - an original exception or error if the processing should be just abandoned without replying to the server
    • isAnyTypeSupported

      public boolean isAnyTypeSupported()
      Description copied from interface: WorkflowTaskHandler
      True if this handler handles at least one workflow type.
      Specified by:
      isAnyTypeSupported in interface WorkflowTaskHandler