Package io.dapr.workflows.runtime
Class WorkflowRuntime
java.lang.Object
io.dapr.workflows.runtime.WorkflowRuntime
- All Implemented Interfaces:
AutoCloseable
Contains methods to register workflows and activities.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowRuntime(io.dapr.durabletask.DurableTaskGrpcWorker worker, io.grpc.ManagedChannel managedChannel, ExecutorService executorService) Constructor. -
Method Summary
-
Constructor Details
-
WorkflowRuntime
public WorkflowRuntime(io.dapr.durabletask.DurableTaskGrpcWorker worker, io.grpc.ManagedChannel managedChannel, ExecutorService executorService) Constructor.- Parameters:
worker- grpcWorker processing activities.managedChannel- grpc channel.executorService- executor service responsible for running the threads.
-
-
Method Details
-
start
public void start()Start the Workflow runtime processing items and block. -
start
public void start(boolean block) Start the Workflow runtime processing items.- Parameters:
block- block the thread if true
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-