Fetcher abstract class that provides methods to init and stop the fetching process, also to save and load the work in progress.

Type Parameters

  • C

Hierarchy

  • BaseHistoryFetcher

Constructors

Properties

backwardJob: undefined | JobRunner
fetcherState: BaseFetcherState<C>
fetcherStateDAL: FetcherStateLevelStorage<C>

Fetcher state storage.

forwardJob: undefined | JobRunner
options: BaseFetcherOptions<C>

Fetcher options.

Methods

  • Parameters

    • fetcherType: "backward" | "forward"
    • ctx: {
          firstRun: boolean;
          interval: number;
      }
      • firstRun: boolean
      • interval: number

    Returns Promise<number>

Generated using TypeDoc