Commanded.Registration.LocalRegistry (Commanded v1.3.1) View Source

Local process registration, restricted to a single node, using Elixir's Registry module.

Link to this section Summary

Functions

Return a supervisor spec for the registry.

Starts a uniquely named child process of a supervisor using the given module and args.

Starts a uniquely named GenServer process for the given module and args.

Return a :via tuple to route a message to a process by its registered name.

Get the pid of a registered name.

Link to this section Functions

Link to this function

child_spec(application, config)

View Source

Return a supervisor spec for the registry.

Link to this function

start_child(adapter_meta, name, supervisor, child_spec)

View Source

Starts a uniquely named child process of a supervisor using the given module and args.

Registers the pid with the given name.

Link to this function

start_link(adapter_meta, name, module, args, start_opts)

View Source

Starts a uniquely named GenServer process for the given module and args.

Registers the pid with the given name.

Link to this function

supervisor_child_spec(adapter_meta, module, arg)

View Source

Starts a supervisor.

Link to this function

via_tuple(adapter_meta, name)

View Source

Return a :via tuple to route a message to a process by its registered name.

Link to this function

whereis_name(adapter_meta, name)

View Source

Get the pid of a registered name.

Returns :undefined if the name is unregistered.