The interval at which snapshots will be saved.
The interval at which snapshots will be saved. Use Duration.Zero to disable snapshots.
This method is invoked once every task finishes.
This method is invoked once every task finishes. The default implementation just stops the orchestrator.
You can use this to implement your termination strategy.
The persistenceId used by the akka-persistence module.
The persistenceId used by the akka-persistence module. The default value is this class simple name.
the behaviors of the tasks which are waiting plus orchestratorReceive
.
(Since version 2.4) use persistAll instead
(Since version 2.4) use persistAllAsync instead
An Orchestrator executes a set of, possibly dependent,
Task
s. A task corresponds to sending a message to an actor, handling its response and possibly mutate the internal state of the Orchestrator.The Orchestrator together with the Task is able to:
NOTE: the responses that are received must be Serializable.
In order for the Orchestrator and the Tasks to be able to achieve all of this they have to access and/or modify each others state directly. This means they are very tightly coupled with each other.