OrchestratorFunction<R> Interface
Type Parameters
- R
public interface OrchestratorFunction<R>
Functional interface for inline orchestrator functions.
See the description of TaskOrchestration for more information about how to correctly implement orchestrators.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract R |
apply(TaskOrchestrationContext ctx)
Executes an orchestrator function and returns a result to use as the orchestration output. |
Method Details
apply
public abstract R apply(TaskOrchestrationContext ctx)
Executes an orchestrator function and returns a result to use as the orchestration output.
This functional interface is designed to support implementing orchestrators as lambda functions. It's intended to be very similar to java.util.function.Function, but with a signature that's specific to orchestrators.
Parameters:
Returns: