/** * [[EventBuffer]] is responsible to store and send events to the * ingestion service endpoint. */ export default interface EventBuffer { /** * Adds an event to the buffer. * An error is thrown if the event buffer is full. * @param item to add to the buffer. */ addItem(item: T): Promise; /** * Starts sending events. */ start(): void; /** * Stops sending events. */ stop(): void; }