OrchestrationRunner Class
- java.
lang. Object - com.
microsoft. durabletask. OrchestrationRunner
- com.
public final class OrchestrationRunner
Helper class for invoking orchestrations directly, without constructing a DurableTaskGrpcWorker object.
This static class can be used to execute orchestration logic directly. In order to use it for this purpose, the caller must provide orchestration state as serialized protobuf bytes.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static byte[] |
loadAndRun(byte[] orchestratorRequestBytes, OrchestratorFunction<R> orchestratorFunc)
Loads orchestration history from |
| static java.lang.String |
loadAndRun(String base64EncodedOrchestratorRequest, OrchestratorFunction<R> orchestratorFunc)
Loads orchestration history from |
| static byte[] |
loadAndRun(byte[] orchestratorRequestBytes, TaskOrchestration orchestration)
Loads orchestration history from |
| static java.lang.String |
loadAndRun(String base64EncodedOrchestratorRequest, TaskOrchestration orchestration)
Loads orchestration history from |
Methods inherited from java.lang.Object
Method Details
loadAndRun
public static byte[]
Loads orchestration history from orchestratorRequestBytes and uses it to execute the orchestrator function code pointed to by orchestratorFunc.
Parameters:
Returns:
loadAndRun
public static String
Loads orchestration history from base64EncodedOrchestratorRequest and uses it to execute the orchestrator function code pointed to by orchestratorFunc.
Parameters:
Returns:
loadAndRun
public static byte[] loadAndRun(byte[] orchestratorRequestBytes, TaskOrchestration orchestration)
Loads orchestration history from orchestratorRequestBytes and uses it to execute the orchestration.
Parameters:
Returns:
loadAndRun
public static String loadAndRun(String base64EncodedOrchestratorRequest, TaskOrchestration orchestration)
Loads orchestration history from base64EncodedOrchestratorRequest and uses it to execute the orchestration.
Parameters:
Returns: