View Source ProcessHub.Service.Synchronizer (ProcessHub v0.2.0-alpha)

The synchronizer service provides API functions for synchronizing process registry data between nodes.

Summary

Functions

Appends remote data to the local process registry.

Detaches remote data from the local process registry.

Returns local node's process registry data used for synchronization.

Functions

Link to this function

append_data(hub_id, remote_data)

View Source
@spec append_data(ProcessHub.hub_id(), %{
  required(node()) => [{ProcessHub.child_spec(), pid()}]
}) :: :ok

Appends remote data to the local process registry.

Link to this function

detach_data(hub_id, remote_children)

View Source
@spec detach_data(ProcessHub.hub_id(), %{
  required(node()) => [{ProcessHub.child_spec(), pid()}]
}) :: :ok

Detaches remote data from the local process registry.

Link to this function

exec_interval_sync(hub_id, strategy, sync_data, remote_node)

View Source
@spec local_sync_data(ProcessHub.hub_id()) :: [{ProcessHub.child_spec(), pid()}]

Returns local node's process registry data used for synchronization.