X3m System v0.6.0 X3m.System.GenAggregateMod behaviour View Source

Link to this section Summary

Link to this section Callbacks

Link to this callback

apply_event_stream(pid, function)

View Source
apply_event_stream(pid(), function()) :: :ok
Link to this callback

commit(pid, arg2, arg3, integer)

View Source
commit(pid(), String.t(), X3m.System.Message.t(), integer()) ::
  {:ok, X3m.System.Aggregate.State.t()} | :transaction_timeout
Link to this callback

handle_msg(pid, atom, arg3, arg4)

View Source
handle_msg(pid(), atom(), X3m.System.Message.t(), Keyword.t()) ::
  {:ok, X3m.System.Message.t(), any()} | any()