Adds a recipe to baker and returns a recipeId for the recipe.
Adds a recipe to baker and returns a recipeId for the recipe.
This function is idempotent, if the same (equal) recipe was added earlier this will return the same recipeId
The compiled recipe.
A recipeId
Creates a process instance for the given recipeId with the given processId as identifier
Creates a process instance for the given recipeId with the given processId as identifier
The recipeId for the recipe to bake
The identifier for the newly baked process
Asynchronously creates a process instance for the given recipeId with the given processId as identifier
Asynchronously creates a process instance for the given recipeId with the given processId as identifier
The recipeId for the recipe to bake
The identifier for the newly baked process
Synchronously returns all events that occurred for a process.
Returns a Source of baker events for a process.
Returns a Source of baker events for a process.
The process identifier.
The source of events.
Returns all recipes added to this baker instance.
Returns all recipes added to this baker instance.
All recipes in the form of map of recipeId -> CompiledRecipe
Returns all provided ingredients for a given process id.
Returns all provided ingredients for a given process id.
The process id.
The provided ingredients.
Returns a future of all the provided ingredients for a given process id.
Returns a future of all the provided ingredients for a given process id.
The process id.
A future of the provided ingredients.
returns a future with the process state.
returns a future with the process state.
The process identifier
The process state.
Returns the recipe for the given RecipeId
Returns the visual state (.dot) for a given process.
Returns the visual state (.dot) for a given process.
The process identifier.
How long to wait to retreive the process state.
A visual (.dot) representation of the process state.
Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.
Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.
The process identifier
The event object
Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.
Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.
This call is fire and forget: If nothing is done with the response object there is NO guarantee that the event is received by the process instance.
Registers a listener to all runtime events for all recipes that run in this Baker instance.
Registers a listener to all runtime events for all recipes that run in this Baker instance.
Note that the delivery guarantee is *AT MOST ONCE*. Do not use it for critical functionality
Registers a listener to all runtime events for recipes with the given name run in this baker instance.
Registers a listener to all runtime events for recipes with the given name run in this baker instance.
Note that the delivery guarantee is *AT MOST ONCE*. Do not use it for critical functionality
Attempts to gracefully shutdown the baker system.
The Baker is the component of the Baker library that runs one or multiples recipes. For each recipe a new instance can be baked, sensory events can be send and state can be inquired upon