public final class ReplayWorkflowTaskHandler extends java.lang.Object implements WorkflowTaskHandler
WorkflowTaskHandler.Result
Constructor and Description |
---|
ReplayWorkflowTaskHandler(java.lang.String namespace,
ReplayWorkflowFactory asyncWorkflowFactory,
WorkflowExecutorCache cache,
SingleWorkerOptions options,
java.lang.String stickyTaskQueueName,
java.time.Duration stickyTaskQueueScheduleToStartTimeout,
WorkflowServiceStubs service,
Functions.Func<java.lang.Boolean> shutdownFn,
java.util.function.BiFunction<LocalActivityWorker.Task,java.time.Duration,java.lang.Boolean> localActivityTaskPoller) |
Modifier and Type | Method and Description |
---|---|
WorkflowTaskHandler.Result |
handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)
Handles a single workflow task.
|
boolean |
isAnyTypeSupported()
True if this handler handles at least one workflow type.
|
public ReplayWorkflowTaskHandler(java.lang.String namespace, ReplayWorkflowFactory asyncWorkflowFactory, WorkflowExecutorCache cache, SingleWorkerOptions options, java.lang.String stickyTaskQueueName, java.time.Duration stickyTaskQueueScheduleToStartTimeout, WorkflowServiceStubs service, Functions.Func<java.lang.Boolean> shutdownFn, java.util.function.BiFunction<LocalActivityWorker.Task,java.time.Duration,java.lang.Boolean> localActivityTaskPoller)
public WorkflowTaskHandler.Result handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask) throws java.lang.Exception
WorkflowTaskHandler
handleWorkflowTask
in interface WorkflowTaskHandler
workflowTask
- The workflow task to handle.java.lang.Exception
public boolean isAnyTypeSupported()
WorkflowTaskHandler
isAnyTypeSupported
in interface WorkflowTaskHandler