Skip to content

PersistenceStrategy.Factory

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

interface Factory

A factory used to create an instance of a PersistenceStrategy.

Each instance of a persistence strategy should have independent storage. Data written to one instance must not be readable from another one.

Functions

create

abstract fun create(identifier: String, maxItemsPerBatch: Int, maxBatchSize: Long): PersistenceStrategy

Creates an instance of a PersistenceStrategy.

Parameters
identifier the identifier for the persistence strategy.
maxItemsPerBatch the maximum number of individual events in a batch
maxBatchSize the maximum size (in bytes) of a complete batch
Clone this wiki locally