Package io.dapr.workflows.runtime
Class WorkflowRuntimeBuilder
java.lang.Object
io.dapr.workflows.runtime.WorkflowRuntimeBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a WorkflowRuntime object.<T extends WorkflowActivity>
voidregisterActivity
(Class<T> clazz) Registers an Activity object.<T extends Workflow>
WorkflowRuntimeBuilderregisterWorkflow
(Class<T> clazz) Registers a Workflow object.
-
Constructor Details
-
WorkflowRuntimeBuilder
public WorkflowRuntimeBuilder()Constructs the WorkflowRuntimeBuilder.
-
-
Method Details
-
build
Returns a WorkflowRuntime object.- Returns:
- A WorkflowRuntime object.
-
registerWorkflow
Registers a Workflow object.- Type Parameters:
T
- any Workflow type- Parameters:
clazz
- the class being registered- Returns:
- the WorkflowRuntimeBuilder
-
registerActivity
Registers an Activity object.- Type Parameters:
T
- any WorkflowActivity type- Parameters:
clazz
- the class being registered
-