Interface EventBuffer<T>

[[EventBuffer]] is responsible to store and send events to the ingestion service endpoint.

interface EventBuffer<T> {
    addItem(item: T): Promise<void>;
    start(): void;
    stop(): void;
}

Type Parameters

  • T

Implemented by

Methods

  • Adds an event to the buffer. An error is thrown if the event buffer is full.

    Parameters

    • item: T

      to add to the buffer.

    Returns Promise<void>