Package io.dapr.durabletask.runner
Class DurableRunner
java.lang.Object
io.dapr.durabletask.runner.DurableRunner
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ActivityRunner,OrchestratorRunner
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal io.opentelemetry.api.trace.Tracer -
Constructor Summary
ConstructorsConstructorDescriptionDurableRunner(OrchestratorService.WorkItem workItem, TaskHubSidecarServiceGrpc.TaskHubSidecarServiceBlockingStub sidecarClient, io.opentelemetry.api.trace.Tracer tracer) Constructs a new instance of the DurableRunner. -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidlogException(io.grpc.StatusRuntimeException e)
-
Field Details
-
sidecarClient
-
workItem
-
tracer
@Nullable public final io.opentelemetry.api.trace.Tracer tracer
-
-
Constructor Details
-
DurableRunner
public DurableRunner(OrchestratorService.WorkItem workItem, TaskHubSidecarServiceGrpc.TaskHubSidecarServiceBlockingStub sidecarClient, @Nullable io.opentelemetry.api.trace.Tracer tracer) Constructs a new instance of the DurableRunner.- Parameters:
workItem- the work item to be executedsidecarClient- the sidecar client used to communicate with the durable task sidecartracer- the tracer used for tracing operations; can be null if tracing is not required
-
-
Method Details
-
getSidecarAddress
-
logException
protected void logException(io.grpc.StatusRuntimeException e)
-