commanded_swarm_registry v0.3.0 Commanded.Registration.SwarmRegistry View Source
Process registration and distribution throughout a cluster of nodes using Swarm.
Link to this section Summary
Functions
Return an optional 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.
Starts a supervisor.
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
child_spec()
View Source
child_spec() :: [:supervisor.child_spec()]
child_spec() :: [:supervisor.child_spec()]
Return an optional supervisor spec for the registry
start_child(name, supervisor, child_spec)
View Source
start_child(
name :: term(),
supervisor :: module(),
child_spec :: Commanded.Registration.start_child_arg()
) :: {:ok, pid()} | {:error, term()}
start_child( name :: term(), supervisor :: module(), child_spec :: Commanded.Registration.start_child_arg() ) :: {:ok, pid()} | {:error, term()}
Starts a uniquely named child process of a supervisor using the given module and args.
Registers the pid with the given name.
start_link(name, module, args) View Source
Starts a uniquely named GenServer
process for the given module and args.
Registers the pid with the given name.
supervisor_child_spec(module, arg)
View Source
supervisor_child_spec(module :: atom(), arg :: any()) ::
:supervisor.child_spec()
supervisor_child_spec(module :: atom(), arg :: any()) :: :supervisor.child_spec()
Starts a supervisor.
via_tuple(name) View Source
Return a :via
tuple to route a message to a process by its registered name.
whereis_name(name) View Source
Get the pid of a registered name.