View Source Eventize.EventSourcedProcess.ProcessBehavior behaviour (eventize v0.2.0)

This module describes a process behavior that can execute incoming messages to a process. With a process behavior you can specify different handlers for different messages depending on what has happened to the process before.

Link to this section Summary

Callbacks

This callback is used in the same way as GenServer.handle_call/3.

This callback is used in the same way as GenServer.handle_cast/2.

Link to this section Callbacks

Link to this callback

execute_call(term, pid, map)

View Source (optional)
@callback execute_call(term(), pid(), map()) :: {list(), term()} | list() | term()

This callback is used in the same way as GenServer.handle_call/3.

Link to this callback

execute_cast(term, map)

View Source (optional)
@callback execute_cast(term(), map()) :: list() | nil

This callback is used in the same way as GenServer.handle_cast/2.