EventStore v0.13.2 EventStore.Registration behaviour View Source
Process registry specification
Link to this section Summary
Functions
Allow a registry provider to handle the standard GenServer
callback functions
Use the EventStore.Registration
module to import the registry_provider/0
and via_tuple/1
functions
Get the configured registry provider, defaults to :local
if not configured
Callbacks
Return an optional supervisor spec for the registry
Sends a message to the given dest and returns :ok
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
Allow a registry provider to handle the standard GenServer
callback functions
Use the EventStore.Registration
module to import the registry_provider/0
and via_tuple/1
functions.
Get the configured registry provider, defaults to :local
if not configured
Link to this section Callbacks
Return an optional supervisor spec for the registry
multi_send(dest :: atom(), message :: any()) :: :ok
Sends a message to the given dest and returns :ok
.
start_child(name :: term(), supervisor :: module(), args :: [any()]) :: {:ok, pid()} | {:error, reason :: term()}
start_child(name :: term(), supervisor :: module(), args :: [any()]) :: {:ok, pid()} | {:error, reason :: term()}
via_tuple(name :: term()) :: {:via, module(), name :: term()}
Return a :via
tuple to route a message to a process by its registered name
whereis_name(name :: term()) :: pid() | :undefined
Get the pid of a registered name.
Returns :undefined
if the name is unregistered.