Skip to content

EventBatchWriter

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

interface EventBatchWriter

Writer allowing FeatureScope to write events in the storage exposing current batch metadata.

Functions

currentMetadata

@WorkerThread

abstract fun currentMetadata(): ByteArray?

Return

the metadata of the current writeable batch

write

@WorkerThread

abstract fun write(event: RawBatchEvent, batchMetadata: ByteArray?, eventType: EventType): Boolean

Writes the content of the event to the current available batch.

Return

true if event was written, false otherwise.

Parameters
event the event to write (content + metadata)
batchMetadata the optional updated batch metadata
eventType additional information about the event data
Clone this wiki locally