Summary
Functions
Returns a specification to start this module under a supervisor.
Set the adaptive-GC heap threshold (bytes, or nil to disable) for a single stack.
Types
@type initialize_shape_opts() :: %{ :action => :create | :restore, optional(:otel_ctx) => Electric.Telemetry.OpenTelemetry.otel_ctx() | nil, optional(:feature_flags) => [binary()], optional(:is_subquery_shape?) => boolean() }
Functions
@spec await_snapshot_start(Electric.stack_id(), Electric.shape_handle(), timeout()) :: :started | {:error, any()}
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec initialize_shape(pid(), Electric.Shapes.Shape.t(), initialize_shape_opts()) :: :ok
@spec set_gc_heap_threshold(Electric.stack_id(), non_neg_integer() | nil) :: :ok
Set the adaptive-GC heap threshold (bytes, or nil to disable) for a single stack.
Consumers cache this value at startup (see State.new/2), so the new threshold only
applies to consumers started after this call — already-running consumers keep the
threshold they read when they booted. Safe to call from IEx.
@spec subscribe_materializer(Electric.stack_id(), Electric.shape_handle(), pid()) :: {:ok, Electric.Replication.LogOffset.t()}
@spec whereis(Electric.stack_id(), Electric.shape_handle()) :: pid() | nil