@stackbit/cms-contentful
Version:
Stackbit Contentful CMS Interface
22 lines • 724 B
TypeScript
export interface LazyPollerOptions<T> {
notificationCallback: T;
sleepTimeoutMs?: number;
pollingIntervalMs?: number;
logger: any;
}
export declare abstract class LazyPoller<T> {
protected notificationCallback: T;
private readonly sleepTimeoutMs;
private readonly pollingIntervalMs;
private sleepTimeout;
private pollTimeout;
private isSleeping;
private logger;
protected constructor({ notificationCallback, sleepTimeoutMs, pollingIntervalMs, logger }: LazyPollerOptions<T>);
resetSleepTimer(): void;
sleep(): void;
private setPollTimeout;
private callPoll;
protected abstract poll(notificationCallback: T): any;
}
//# sourceMappingURL=lazy-poller.d.ts.map