system_registry v0.6.1 SystemRegistry.Processor behaviour
Link to this section Summary
Callbacks
Handles a commit. Takes a transaction and returns {:ok, reply, state} | {:error, reason, state}
Handles a validation. Takes a transaction, and returns {:ok, reply, state} or {:error, reason, state}
Link to this section Functions
Link to this function
call(processors, fun, args)
Link to this function
handle_call(message, from, arg3)
Link to this function
handle_cast(message, arg)
Link to this function
handle_info(message, arg)
Link to this function
init(arg)
Link to this section Callbacks
Link to this callback
handle_commit(arg0, state)
handle_commit(SystemRegistry.Transaction.t(), state :: term()) :: {:ok, term(), state :: term()} | {:error, reason :: term(), state :: term()}
Handles a commit. Takes a transaction and returns {:ok, reply, state} | {:error, reason, state}.
Link to this callback
handle_validate(arg0, state)
handle_validate(SystemRegistry.Transaction.t(), state :: term()) :: {:ok, term(), state :: term()} | {:error, reason :: term(), state :: term()}
Handles a validation. Takes a transaction, and returns {:ok, reply, state} or {:error, reason, state}.