Class ReplayWorkflowTaskHandler
java.lang.Object
io.temporal.internal.replay.ReplayWorkflowTaskHandler
- All Implemented Interfaces:
WorkflowTaskHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.temporal.internal.worker.WorkflowTaskHandler
WorkflowTaskHandler.Result -
Constructor Summary
ConstructorsConstructorDescriptionReplayWorkflowTaskHandler(String namespace, ReplayWorkflowFactory asyncWorkflowFactory, WorkflowExecutorCache cache, SingleWorkerOptions options, io.temporal.api.taskqueue.v1.TaskQueue stickyTaskQueue, Duration stickyTaskQueueScheduleToStartTimeout, io.temporal.serviceclient.WorkflowServiceStubs service, LocalActivityDispatcher localActivityDispatcher) -
Method Summary
Modifier and TypeMethodDescriptionhandleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask) Handles a single workflow taskbooleanTrue if this handler handles at least one workflow type.
-
Constructor Details
-
ReplayWorkflowTaskHandler
public ReplayWorkflowTaskHandler(String namespace, ReplayWorkflowFactory asyncWorkflowFactory, WorkflowExecutorCache cache, SingleWorkerOptions options, io.temporal.api.taskqueue.v1.TaskQueue stickyTaskQueue, Duration stickyTaskQueueScheduleToStartTimeout, io.temporal.serviceclient.WorkflowServiceStubs service, LocalActivityDispatcher localActivityDispatcher)
-
-
Method Details
-
handleWorkflowTask
public WorkflowTaskHandler.Result handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask) throws Exception Description copied from interface:WorkflowTaskHandlerHandles a single workflow task- Specified by:
handleWorkflowTaskin interfaceWorkflowTaskHandler- 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:WorkflowTaskHandlerTrue if this handler handles at least one workflow type.- Specified by:
isAnyTypeSupportedin interfaceWorkflowTaskHandler
-