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

Name Summary
<init> FlatFileExperimentStorage(file: File)
Class which uses a flat JSON file as an experiment storage mechanism

Functions

Name Summary
retrieve fun retrieve(): ExperimentsSnapshot
Reads experiments from disk
save fun save(snapshot: ExperimentsSnapshot): Unit
Stores the given experiments to disk