View Source X3m.System.GenAggregateMod behaviour (X3m System v0.8.4)

Summary

Callbacks

Link to this callback

apply_event_stream(pid, function)

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

commit(pid, t, t, integer)

View Source
@callback 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, t, t)

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