Hydrax.Registry (Hydrax v0.4.0) View Source

A PID registry for use across nodes in a cluster.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor. See Supervisor.

Return the PID via-tuple for an id and name pair.

Lookup all PIDs associated with the given id.

Lookup the PIDs associated with the given id and name.

Remove the given key from the registry.

Takes a registered name in the form of a :via tuple and unwraps it to return the key.

Link to this section Functions

Returns a specification to start this module under a supervisor. See Supervisor.

Return the PID via-tuple for an id and name pair.

Examples

iex> Hydrax.Registry.pid_name("foo", "bar") {:via, Horde.Registry, {Hydrax.Registry, {"foo", "bar"}}}

Lookup all PIDs associated with the given id.

Lookup the PIDs associated with the given id and name.

Remove the given key from the registry.

Takes a registered name in the form of a :via tuple and unwraps it to return the key.