30 lines
920 B
TypeScript
30 lines
920 B
TypeScript
import type { SentryEvent } from '../types';
|
|
import { EventBus } from './EventBus';
|
|
export declare class EventQueue {
|
|
private queue;
|
|
private maxSize;
|
|
private flushInterval;
|
|
private timer;
|
|
private eventBus;
|
|
private flushCallback;
|
|
private syncFlushCallback;
|
|
private lastFlushTime;
|
|
private dedupeMap;
|
|
private pendingCounts;
|
|
private errorRateWindow;
|
|
private paused;
|
|
private pauseTimer;
|
|
constructor(maxSize: number, flushInterval: number, eventBus: EventBus, flushCallback: (events: SentryEvent[]) => Promise<void>, syncFlushCallback: (events: SentryEvent[]) => void);
|
|
start(): void;
|
|
private startTimer;
|
|
private setupVisibilityListener;
|
|
private checkInfiniteLoop;
|
|
enqueue(event: SentryEvent): void;
|
|
private buildCountEvents;
|
|
private getDedupeKey;
|
|
flush(): Promise<void>;
|
|
flushSync(): void;
|
|
size(): number;
|
|
destroy(): void;
|
|
}
|