public final class ReplayDecisionTaskHandler extends java.lang.Object implements DecisionTaskHandler
DecisionTaskHandler.Result
Constructor and Description |
---|
ReplayDecisionTaskHandler(java.lang.String domain,
ReplayWorkflowFactory asyncWorkflowFactory,
DeciderCache cache,
SingleWorkerOptions options,
java.lang.String stickyTaskListName,
java.time.Duration stickyTaskListScheduleToStartTimeout,
IWorkflowService service,
java.util.function.BiFunction<LocalActivityWorker.Task,java.time.Duration,java.lang.Boolean> laTaskPoller) |
Modifier and Type | Method and Description |
---|---|
DecisionTaskHandler.Result |
handleDecisionTask(PollForDecisionTaskResponse decisionTask)
Handles a single workflow task.
|
boolean |
isAnyTypeSupported()
True if this handler handles at least one workflow type.
|
public ReplayDecisionTaskHandler(java.lang.String domain, ReplayWorkflowFactory asyncWorkflowFactory, DeciderCache cache, SingleWorkerOptions options, java.lang.String stickyTaskListName, java.time.Duration stickyTaskListScheduleToStartTimeout, IWorkflowService service, java.util.function.BiFunction<LocalActivityWorker.Task,java.time.Duration,java.lang.Boolean> laTaskPoller)
public DecisionTaskHandler.Result handleDecisionTask(PollForDecisionTaskResponse decisionTask) throws java.lang.Exception
DecisionTaskHandler
handleDecisionTask
in interface DecisionTaskHandler
decisionTask
- The decision task to handle.java.lang.Exception
public boolean isAnyTypeSupported()
DecisionTaskHandler
isAnyTypeSupported
in interface DecisionTaskHandler