public interface ReplayWorkflow
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String reason) |
void |
close() |
boolean |
eventLoop() |
long |
getNextWakeUpTime() |
byte[] |
getOutput() |
WorkflowImplementationOptions |
getWorkflowImplementationOptions() |
void |
handleSignal(java.lang.String signalName,
byte[] input,
long eventId)
Handle an external signal event.
|
WorkflowExecutionException |
mapError(java.lang.Error failure) |
WorkflowExecutionException |
mapUnexpectedException(java.lang.Exception failure)
Convert exception that happened in the framework code to the format that ReplayWorkflow
implementation understands.
|
byte[] |
query(WorkflowQuery query)
Called after all history is replayed and workflow cannot make any progress if decision task is
a query.
|
void |
start(HistoryEvent event,
DecisionContext context) |
void start(HistoryEvent event, DecisionContext context)
void handleSignal(java.lang.String signalName, byte[] input, long eventId)
boolean eventLoop() throws java.lang.Throwable
java.lang.Throwable
byte[] getOutput()
void cancel(java.lang.String reason)
void close()
long getNextWakeUpTime()
Workflow.sleep(long)
expires.byte[] query(WorkflowQuery query)
query
- WorkflowExecutionException mapUnexpectedException(java.lang.Exception failure)
failure
- Unexpected failure causeWorkflowExecutionException mapError(java.lang.Error failure)
WorkflowImplementationOptions getWorkflowImplementationOptions()