public final class ReplayDecisionTaskHandler extends java.lang.Object implements DecisionTaskHandler
DecisionTaskHandler.Result
Constructor and Description |
---|
ReplayDecisionTaskHandler(java.lang.String domain,
ReplayWorkflowFactory asyncWorkflowFactory,
SingleWorkerOptions options) |
Modifier and Type | Method and Description |
---|---|
DecisionTaskHandler.Result |
handleDecisionTask(DecisionTaskWithHistoryIterator decisionTaskIterator)
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, SingleWorkerOptions options)
public DecisionTaskHandler.Result handleDecisionTask(DecisionTaskWithHistoryIterator decisionTaskIterator) throws java.lang.Exception
DecisionTaskHandler
handleDecisionTask
in interface DecisionTaskHandler
decisionTaskIterator
- The decision task to handle. Iterator wraps the task to support
pagination of the history. The events are loaded lazily when history iterator next is
called. It is expected that the method implementation aborts decision by rethrowing any
exception from Iterator.next()
.java.lang.Exception
public boolean isAnyTypeSupported()
DecisionTaskHandler
isAnyTypeSupported
in interface DecisionTaskHandler