API Core - v1.5.0
    Preparing search index...

    Class SyncManager

    Manages periodic auto-sync with a configurable interval. Drives the consuming clients' periodic registry refresh.

    Implements

    • Disposable
    Index
    • Builds the manager around the consumer's sync function.

      Parameters

      • syncFunction: () => Promise<unknown>

        The sync to fire on each tick.

      • logger: Logger

        Sink for a rejected sync.

      • intervalMinutes: number | false = false

        Auto-sync cadence; false or 0 disables it.

      Returns SyncManager

    • Clears the pending timeout on disposal, preventing leaked timers.

      Returns void

    • Schedules the next tick when an interval is armed; the sync runs fire-and-forget so a rejection is logged, never propagated.

      Returns void

    • Updates the cadence and reschedules from now.

      Parameters

      • minutes: number | false

        New interval; false or 0 disables the timer.

      Returns void