Class ReplayWorkflowTaskHandler

    • Constructor Detail

      • ReplayWorkflowTaskHandler

        public ReplayWorkflowTaskHandler​(java.lang.String namespace,
                                         ReplayWorkflowFactory asyncWorkflowFactory,
                                         WorkflowExecutorCache cache,
                                         SingleWorkerOptions options,
                                         io.temporal.api.taskqueue.v1.TaskQueue stickyTaskQueue,
                                         java.time.Duration stickyTaskQueueScheduleToStartTimeout,
                                         io.temporal.serviceclient.WorkflowServiceStubs service,
                                         LocalActivityDispatcher localActivityDispatcher)
    • Method Detail

      • handleWorkflowTask

        public WorkflowTaskHandler.Result handleWorkflowTask​(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)
                                                      throws java.lang.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:
        java.lang.Exception - an original exception or error if the processing should be just abandoned without replying to the server