Package io.dapr.durabletask.runner
Class OrchestratorRunner
java.lang.Object
io.dapr.durabletask.runner.DurableRunner
io.dapr.durabletask.runner.OrchestratorRunner
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields inherited from class io.dapr.durabletask.runner.DurableRunner
sidecarClient, tracer, workItem -
Constructor Summary
ConstructorsConstructorDescriptionOrchestratorRunner(OrchestratorService.WorkItem workItem, TaskOrchestrationExecutor taskOrchestrationExecutor, TaskHubSidecarServiceGrpc.TaskHubSidecarServiceBlockingStub sidecarClient, io.opentelemetry.api.trace.Tracer tracer) Constructs a new instance of the OrchestratorRunner class. -
Method Summary
Methods inherited from class io.dapr.durabletask.runner.DurableRunner
getSidecarAddress, logException
-
Constructor Details
-
OrchestratorRunner
public OrchestratorRunner(OrchestratorService.WorkItem workItem, TaskOrchestrationExecutor taskOrchestrationExecutor, TaskHubSidecarServiceGrpc.TaskHubSidecarServiceBlockingStub sidecarClient, @Nullable io.opentelemetry.api.trace.Tracer tracer) Constructs a new instance of the OrchestratorRunner class.- Parameters:
workItem- The work item containing details about the orchestrator task to be executed.taskOrchestrationExecutor- The executor responsible for running task orchestration logic.sidecarClient- The gRPC stub for communication with the Task Hub sidecar service.tracer- An optional tracer used for distributed tracing, can be null.
-
-
Method Details
-
run
public void run()
-