PersistenceStrategy.Factory - DataDog/dd-sdk-android GitHub Wiki

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