Hierarchy

  • FlagConfigUpdaterBase
    • FlagConfigPoller

Implements

  • FlagConfigUpdater

Constructors

  • Parameters

    • fetcher: FlagConfigFetcher
    • cache: FlagConfigCache
    • cohortStorage: CohortStorage
    • Optional cohortFetcher: CohortFetcher
    • pollingIntervalMillis: number = LocalEvaluationDefaults.flagConfigPollingIntervalMillis
    • debug: boolean = false

    Returns FlagConfigPoller

Properties

cohortFetcher?: CohortFetcher
cohortStorage: CohortStorage

Methods

  • Fetch initial flag configurations and start polling for updates.

    You must call this function to begin polling for flag config updates. The promise returned by this function is resolved when the initial call to fetch the flag configuration completes.

    Calling this function while the poller is already running does nothing.

    Parameters

    Returns Promise<void>

  • Stop polling for flag configurations.

    Calling this function while the poller is not running will do nothing.

    Returns void

  • Parameters

    Returns Promise<void>