-type actions() :: #{prepare :=
classy_lib:mfargs(),
commit := [classy_lib:mfargs()],
rollback => [classy_lib:mfargs()]}.
Per-participant set of commit actions.
prepareCallback that lets the participant decide whether to commit.
Classy prepends two additional values to the user-specified argument list:
false during pre-commit fast abort check
and to true during the persistent flow.
The return value is a boolean indicating the participant’s vote (true means “yes”).
commitList of actions executed on the sites if the coordinator decides to go ahead with the commit. Classy prepends vote ID to the user-specified argument list. Return value is ignored.
rollbackAction executed on the participant when the coordinator decides to abort the commit. Classy prepends vote ID to the user-specified argument list. Return value is ignored.