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

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

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.

Functions

child_spec(application, config)

Return a supervisor spec for the registry.

start_child(adapter_meta, name, supervisor, child_spec)

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

Registers the pid with the given name.

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

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

Registers the pid with the given name.

supervisor_child_spec(adapter_meta, module, arg)

Starts a supervisor.

via_tuple(adapter_meta, name)

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

whereis_name(adapter_meta, name)

Get the pid of a registered name.

Returns :undefined if the name is unregistered.