View Source ProcessHub.Coordinator (ProcessHub v0.2.0-alpha)

The ProcessHub coordinator module is responsible for coordinating most of the ProcessHub events and work.

In most cases, the coordinator module delegates the work to other service-based modules or handler processes that are created on demand.

Each ProcessHub instance has its own coordinator process that handles the coordination. These processes are supervised by the ProcessHub.Initializer supervisor.

The coordinator stores state about the ProcessHub instance, such as the cluster nodes.

Additionally, the coordinator takes care of any periodic tasks required by the ProcessHub instance, such as initial synchronization, propagation, etc.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Types

@type t() :: %ProcessHub.Coordinator{hub_id: atom()}

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_continue(atom, state)

View Source

Callback implementation for GenServer.handle_continue/2.

Callback implementation for GenServer.init/1.