android-components / mozilla.components.service.fretboard.storage.flatfile / FlatFileExperimentStorage

FlatFileExperimentStorage

class FlatFileExperimentStorage : ExperimentStorage (source)

Class which uses a flat JSON file as an experiment storage mechanism

Parameters

file - file where to store experiments

Constructors

<init>

FlatFileExperimentStorage(file: File)

Class which uses a flat JSON file as an experiment storage mechanism

Functions

retrieve

fun retrieve(): ExperimentsSnapshot

Reads experiments from disk

save

fun save(snapshot: ExperimentsSnapshot): Unit

Stores the given experiments to disk