Package io.temporal.internal.replay
Class ReplayWorkflowTaskHandler
- java.lang.Object
-
- io.temporal.internal.replay.ReplayWorkflowTaskHandler
-
- All Implemented Interfaces:
WorkflowTaskHandler
public final class ReplayWorkflowTaskHandler extends java.lang.Object implements WorkflowTaskHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.temporal.internal.worker.WorkflowTaskHandler
WorkflowTaskHandler.Result
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowTaskHandler.Result
handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)
Handles a single workflow taskboolean
isAnyTypeSupported()
True if this handler handles at least one workflow type.
-
-
-
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 interfaceWorkflowTaskHandler
- 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
-
isAnyTypeSupported
public boolean isAnyTypeSupported()
Description copied from interface:WorkflowTaskHandler
True if this handler handles at least one workflow type.- Specified by:
isAnyTypeSupported
in interfaceWorkflowTaskHandler
-
-