Interface OrchestratorFunction<R>

Type Parameters:
R - the type of the result returned by the function
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface 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
    Description
    Executes an orchestrator function and returns a result to use as the orchestration output.
  • Method Details

    • apply

      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 Function, but with a signature that's specific to orchestrators.

      Parameters:
      ctx - the orchestration context, which provides access to additional context for the current orchestration execution
      Returns:
      the serializable output of the orchestrator function