Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
import type { ReplayRecordingData } from '@sentry/core';
|
|
import type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '../types';
|
|
/**
|
|
* This proxy will try to use the compression worker, and fall back to use the simple buffer if an error occurs there.
|
|
* This can happen e.g. if the worker cannot be loaded.
|
|
* Exported only for testing.
|
|
*/
|
|
export declare class EventBufferProxy implements EventBuffer {
|
|
private _fallback;
|
|
private _compression;
|
|
private _used;
|
|
private _ensureWorkerIsLoadedPromise;
|
|
constructor(worker: Worker);
|
|
/** @inheritdoc */
|
|
get waitForCheckout(): boolean;
|
|
/** @inheritdoc */
|
|
get type(): EventBufferType;
|
|
/** @inheritDoc */
|
|
get hasEvents(): boolean;
|
|
/** @inheritdoc */
|
|
get hasCheckout(): boolean;
|
|
/** @inheritdoc */
|
|
set hasCheckout(value: boolean);
|
|
/** @inheritdoc */
|
|
set waitForCheckout(value: boolean);
|
|
/** @inheritDoc */
|
|
destroy(): void;
|
|
/** @inheritdoc */
|
|
clear(): void;
|
|
/** @inheritdoc */
|
|
getEarliestTimestamp(): number | null;
|
|
/**
|
|
* Add an event to the event buffer.
|
|
*
|
|
* Returns true if event was successfully added.
|
|
*/
|
|
addEvent(event: RecordingEvent): Promise<AddEventResult>;
|
|
/** @inheritDoc */
|
|
finish(): Promise<ReplayRecordingData>;
|
|
/** Ensure the worker has loaded. */
|
|
ensureWorkerIsLoaded(): Promise<void>;
|
|
/** Actually check if the worker has been loaded. */
|
|
private _ensureWorkerIsLoaded;
|
|
/** Switch the used buffer to the compression worker. */
|
|
private _switchToCompressionWorker;
|
|
}
|
|
//# sourceMappingURL=EventBufferProxy.d.ts.map |