Interface Configuration

All Known Implementing Classes:
Configuration.Default

public interface Configuration

Mutable configuration type, which serves as a template for an EmbeddedStorageFoundation.

Its purposes are:
- To offer all possible settings of the MicroStream Storage in one place.
- And to enable external configuration.

Code example:

 EmbeddedStorageManager storageManager = Configuration.Default()
 .setBaseDirectoryInUserHome("data-dir")
 .setBackupDirectory("backup-dir")
 .setChannelCount(4)
 .createEmbeddedStorageFoundation()
 .createEmbeddedStorageManager();
 

External configuration example with properties file

 baseDirectory = ~/data-dir
 backupDirectory = backup-dir
 channelCount = 4
 Configuration configuration = Configuration.LoadIni(
 "path-to-properties-file"
 );
 

See Also:
ConfigurationLoader, ConfigurationParser, ConfigurationPropertyNames, MicroStream Reference Manual