Package io.dapr.durabletask
Class TaskOrchestrationExecutor
java.lang.Object
io.dapr.durabletask.TaskOrchestrationExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionTaskOrchestrationExecutor(TaskOrchestrationFactories orchestrationFactories, DataConverter dataConverter, Duration maximumTimerInterval, Logger logger, String appId) Creates a new TaskOrchestrationExecutor. -
Method Summary
Modifier and TypeMethodDescriptionexecute(List<OrchestratorService.HistoryEvent> pastEvents, List<OrchestratorService.HistoryEvent> newEvents) Executes the orchestration with the given past and new events.
-
Constructor Details
-
TaskOrchestrationExecutor
public TaskOrchestrationExecutor(TaskOrchestrationFactories orchestrationFactories, DataConverter dataConverter, Duration maximumTimerInterval, Logger logger, String appId) Creates a new TaskOrchestrationExecutor.- Parameters:
orchestrationFactories- map of orchestration names to their factoriesdataConverter- converter for serializing/deserializing datamaximumTimerInterval- maximum duration for timer intervalslogger- logger for orchestration executionappId- application ID for cross-app routing
-
-
Method Details
-
execute
public TaskOrchestratorResult execute(List<OrchestratorService.HistoryEvent> pastEvents, List<OrchestratorService.HistoryEvent> newEvents) Executes the orchestration with the given past and new events.- Parameters:
pastEvents- list of past history eventsnewEvents- list of new history events- Returns:
- the result of the orchestrator execution
-