Electric.CoreSupervisor (electric v1.2.4)

View Source

A supervisor that starts the core components of the Electric system. This is divided into two subsystems:

  1. The connection subsystem (processes that may exit on a connection failure), started with Connection.Supervisor
  2. The shape subsystem (processes that are resilient to connection failures), started with Shapes.Supervisor

Summary

Functions

Returns a specification to start this module under a supervisor.

This function is supposed to be called from Connection.Manager at the right point in its initialization sequence.

Stops the Shapes.Supervisor if it's currently running.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

name(opts)

start_link(opts)

start_shapes_supervisor(opts)

This function is supposed to be called from Connection.Manager at the right point in its initialization sequence.

stop_shapes_supervisor(opts)

Stops the Shapes.Supervisor if it's currently running.

This is useful when you need to reset storage before starting a new supervisor. Returns :ok if the supervisor was stopped or wasn't running.