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" );
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classConfiguration.Default
- 
Method SummaryModifier and Type Method Description default EmbeddedStorageFoundation<?>createEmbeddedStorageFoundation()Creates anEmbeddedStorageFoundationbased on the settings of thisConfiguration.static ConfigurationDefault()Creates a newConfigurationwith the default settings.static StringDefaultResourceName()The default name of the storage configuration resource.default voidexportIni(File file)Exports this configuration as a INI file.default voidexportIni(File file, Charset charset)Exports this configuration as a INI file.default voidexportIni(OutputStream outputStream)Exports this configuration as INI.default voidexportIni(OutputStream outputStream, Charset charset)Exports this configuration as INI.default voidexportIni(URL url)Exports this configuration as a INI file.default voidexportIni(URL url, Charset charset)Exports this configuration as a INI file.default voidexportIni(Path path)Exports this configuration as an INI file to the specified path.default voidexportIni(Path path, Charset charset)Exports this configuration as an INI file to the specified path.default voidexportXml(File file)Exports this configuration as a XML file.default voidexportXml(File file, Charset charset)Exports this configuration as a XML file.default voidexportXml(OutputStream outputStream)Exports this configuration as XML.default voidexportXml(OutputStream outputStream, Charset charset)Exports this configuration as XML.default voidexportXml(URL url)Exports this configuration as a XML file.default voidexportXml(URL url, Charset charset)Exports this configuration as a XML file.default voidexportXml(Path path)Exports this configuration as a XML file to the specified path.default voidexportXml(Path path, Charset charset)Exports this configuration as a XML file to the specified path.StringgetBackupDirectory()The backup directory.StringgetBaseDirectory()The base directory of the storage in the file system.intgetChannelCount()The number of threads and number of directories used by the storage engine.StringgetChannelDirectoryPrefix()Name prefix of the subdirectories used by the channel threads.booleangetDataFileCleanupHeadFile()A flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.default doublegetDataFileDissolveRatio()Deprecated.replaced bygetDataFileMinimumUseRatio(), will be removed in a future releaseintgetDataFileMaximumSize()Maximum file size for a data file to avoid cleaning it up.default intgetDataFileMaxSize()Deprecated.replaced bygetDataFileMaximumSize(), will be removed in a future releaseintgetDataFileMinimumSize()Minimum file size for a data file to avoid cleaning it up.doublegetDataFileMinimumUseRatio()The ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved.default intgetDataFileMinSize()Deprecated.replaced bygetDataFileMinimumSize(), will be removed in a future releaseStringgetDataFilePrefix()Name prefix of the storage files.StringgetDataFileSuffix()Name suffix of the storage files.StringgetDeletionDirectory()The deletion directory.longgetEntityCacheThreshold()Abstract threshold value for the lifetime of entities in the cache.default longgetEntityCacheTimeout()Deprecated.replaced bygetEntityCacheTimeoutMs(), will be removed in a future releaselonggetEntityCacheTimeoutMs()Timeout in milliseconds for the entity cache evaluator.default longgetHouseKeepingInterval()Deprecated.replaced bygetHousekeepingIntervalMs(), will be removed in a future releaselonggetHousekeepingIntervalMs()Interval in milliseconds for the houskeeping.default longgetHouseKeepingNanoTimeBudget()Deprecated.replaced bygetHousekeepingTimeBudgetNs(), will be removed in a future releaselonggetHousekeepingTimeBudgetNs()Number of nanoseconds used for each housekeeping cycle.StringgetLockFileName()StringgetRescuedFileSuffix()StringgetTransactionFilePrefix()Name prefix of the storage transaction file.StringgetTransactionFileSuffix()Name suffix of the storage transaction file.StringgetTruncationDirectory()The truncation directory.StringgetTypeDictionaryFilename()The name of the dictionary file.static ConfigurationLoad()Tries to load the default configuration properties file.static ConfigurationLoad(String path)Tries to load the configuration file frompath.static ConfigurationLoad(String path, Charset charset)Tries to load the configuration file frompath.static ConfigurationLoad(Charset charset)Tries to load the default configuration properties file.static ConfigurationLoadIni(File file)Tries to load the configuration INI from the filefile.static ConfigurationLoadIni(File file, Charset charset)Tries to load the configuration INI from the filefile.static ConfigurationLoadIni(InputStream inputStream)Tries to load the configuration INI from theInputStreaminputStream.static ConfigurationLoadIni(InputStream inputStream, Charset charset)Tries to load the configuration INI from theInputStreaminputStream.static ConfigurationLoadIni(String path)Tries to load the configuration INI file frompath.static ConfigurationLoadIni(String path, Charset charset)Tries to load the configuration INI file frompath.static ConfigurationLoadIni(URL url)Tries to load the configuration INI from the URLurl.static ConfigurationLoadIni(URL url, Charset charset)Tries to load the configuration INI from the URLurl.static ConfigurationLoadIni(Path path)Tries to load the configuration INI file frompath.static ConfigurationLoadIni(Path path, Charset charset)Tries to load the configuration INI file frompath.static ConfigurationLoadXml(File file)Tries to load the configuration XML from the filefile.static ConfigurationLoadXml(File file, Charset charset)Tries to load the configuration XML from the filefile.static ConfigurationLoadXml(InputStream inputStream)Tries to load the configuration XML from theInputStreaminputStream.static ConfigurationLoadXml(InputStream inputStream, Charset charset)Tries to load the configuration XML from theInputStreaminputStream.static ConfigurationLoadXml(String path)Tries to load the configuration XML file frompath.static ConfigurationLoadXml(String path, Charset charset)Tries to load the configuration XML file frompath.static ConfigurationLoadXml(URL url)Tries to load the configuration XML from the URLurl.static ConfigurationLoadXml(URL url, Charset charset)Tries to load the configuration XML from the URLurl.static ConfigurationLoadXml(Path path)Tries to load the configuration XML file frompath.static ConfigurationLoadXml(Path path, Charset charset)Tries to load the configuration XML file frompath.static StringPathProperty()The property name which is used to hand the external configuration file path to the application.ConfigurationsetBackupDirectory(String backupDirectory)The backup directory.default ConfigurationsetBackupDirectoryInUserHome(String backupDirectoryInUserHome)The backup directory.ConfigurationsetBaseDirectory(String baseDirectory)The base directory of the storage in the file system.default ConfigurationsetBaseDirectoryInUserHome(String baseDirectoryInUserHome)The base directory of the storage in the file system.ConfigurationsetChannelCount(int channelCount)The number of threads and number of directories used by the storage engine.ConfigurationsetChannelDirectoryPrefix(String channelDirectoryPrefix)Name prefix of the subdirectories used by the channel threads.ConfigurationsetDataFileCleanupHeadFile(boolean dataFileCleanupHeadFile)A flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.default ConfigurationsetDataFileDissolveRatio(double dataFileDissolveRatio)Deprecated.replaced bysetDataFileMinimumUseRatio(double), will be removed in a future releaseConfigurationsetDataFileMaximumSize(int dataFileMaximumSize)Maximum file size for a data file to avoid cleaning it up.default ConfigurationsetDataFileMaxSize(int dataFileMaxSize)Deprecated.replaced bysetDataFileMaximumSize(int), will be removed in a future releaseConfigurationsetDataFileMinimumSize(int dataFileMinimumSize)Minimum file size for a data file to avoid cleaning it up.ConfigurationsetDataFileMinimumUseRatio(double dataFileMinimumUseRatio)The ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved.default ConfigurationsetDataFileMinSize(int dataFileMinSize)Deprecated.replaced bysetDataFileMinimumSize(int), will be removed in a future releaseConfigurationsetDataFilePrefix(String dataFilePrefix)Name prefix of the storage files.ConfigurationsetDataFileSuffix(String dataFileSuffix)Name suffix of the storage files.ConfigurationsetDeletionDirectory(String deletionDirectory)The deletion directory.ConfigurationsetEntityCacheThreshold(long entityCacheThreshold)Abstract threshold value for the lifetime of entities in the cache.default ConfigurationsetEntityCacheTimeout(long entityCacheTimeout)Deprecated.replaced bysetEntityCacheTimeoutMs(long), will be removed in a future releaseConfigurationsetEntityCacheTimeoutMs(long entityCacheTimeoutMs)Timeout in milliseconds for the entity cache evaluator.default ConfigurationsetHouseKeepingInterval(long houseKeepingInterval)Deprecated.replaced bysetHousekeepingIntervalMs(long), will be removed in a future releaseConfigurationsetHousekeepingIntervalMs(long houseKeepingIntervalMs)Interval in milliseconds for the houskeeping.default ConfigurationsetHouseKeepingNanoTimeBudget(long houseKeepingNanoTimeBudget)Deprecated.replaced bysetHousekeepingTimeBudgetNs(long), will be removed in a future releaseConfigurationsetHousekeepingTimeBudgetNs(long housekeepingTimeBudgetNs)Number of nanoseconds used for each housekeeping cycle.ConfigurationsetLockFileName(String lockFileName)ConfigurationsetRescuedFileSuffix(String rescuedFileSuffix)ConfigurationsetTransactionFilePrefix(String transactionFilePrefix)Name prefix of the storage transaction file.ConfigurationsetTransactionFileSuffix(String transactionFileSuffix)Name suffix of the storage transaction file.ConfigurationsetTruncationDirectory(String truncationDirectory)The truncation directory.ConfigurationsetTypeDictionaryFilename(String typeDictionaryFilename)The name of the dictionary file.
- 
Method Details- 
PathPropertyThe property name which is used to hand the external configuration file path to the application.Either as system property or in the context's configuration, e.g. Spring's application.properties. - Returns:
- "microstream.storage.configuration.path"
 
- 
DefaultResourceNameThe default name of the storage configuration resource.- Returns:
- "microstream-storage.properties"
- See Also:
- Load()
 
- 
LoadTries to load the default configuration properties file.The search order is as follows: - The path set in the system property "microstream.storage.configuration.path"
- The file named "microstream-storage.properties" in
 - The classpath
- The application's directory
- The user home directory
 
 - Returns:
- the loaded configuration or nullif none was found
- See Also:
- PathProperty(),- DefaultResourceName()
 
- 
LoadTries to load the default configuration properties file.The search order is as follows: - The path set in the system property "microstream.storage.configuration.path"
- The file named "microstream-storage.properties" in
 - The classpath
- The application's directory
- The user home directory
 
 - Parameters:
- charset- the charset used to load the configuration
- Returns:
- the loaded configuration or nullif none was found
- See Also:
- PathProperty(),- DefaultResourceName()
 
- 
LoadTries to load the configuration file frompath. Depending on the file suffix either the XML or the INI loader is used.The load order is as follows: - The classpath
- As an URL
- As a file
 - Parameters:
- path- a classpath resource, a file path or an URL
- Returns:
- the configuration or nullif none was found
 
- 
LoadTries to load the configuration file frompath. Depending on the file suffix either the XML or the INI loader is used.The load order is as follows: - The classpath
- As an URL
- As a file
 - Parameters:
- path- a classpath resource, a file path or an URL
- charset- the charset used to load the configuration
- Returns:
- the configuration or nullif none was found
 
- 
LoadIniTries to load the configuration INI file frompath.The load order is as follows: - The classpath
- As an URL
- As a file
 - Parameters:
- path- a classpath resource, a file path or an URL
- Returns:
- the configuration or nullif none was found
 
- 
LoadIniTries to load the configuration INI file frompath.The load order is as follows: - The classpath
- As an URL
- As a file
 - Parameters:
- path- a classpath resource, a file path or an URL
- charset- the charset used to load the configuration
- Returns:
- the configuration or nullif none was found
 
- 
LoadIniTries to load the configuration INI file frompath.- Parameters:
- path- file system path
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadIniTries to load the configuration INI file frompath.- Parameters:
- path- file system path
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadIniTries to load the configuration INI from the filefile.- Parameters:
- file- file path
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadIniTries to load the configuration INI from the filefile.- Parameters:
- file- file path
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadIniTries to load the configuration INI from the URLurl.- Parameters:
- url- URL path
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadIniTries to load the configuration INI from the URLurl.- Parameters:
- url- URL path
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadIniTries to load the configuration INI from theInputStreaminputStream.Note that the given inputStreamwill not be closed by this method.- Parameters:
- inputStream- the stream to read from
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadIniTries to load the configuration INI from theInputStreaminputStream.Note that the given inputStreamwill not be closed by this method.- Parameters:
- inputStream- the stream to read from
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML file frompath.The load order is as follows: - The classpath
- As an URL
- As a file
 - Parameters:
- path- a classpath resource, a file path or an URL
- Returns:
- the configuration or nullif none was found
 
- 
LoadXmlTries to load the configuration XML file frompath.The load order is as follows: - The classpath
- As an URL
- As a file
 - Parameters:
- path- a classpath resource, a file path or an URL
- charset- the charset used to load the configuration
- Returns:
- the configuration or nullif none was found
 
- 
LoadXmlTries to load the configuration XML file frompath.- Parameters:
- path- file system path
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML file frompath.- Parameters:
- path- file system path
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML from the filefile.- Parameters:
- file- file path
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML from the filefile.- Parameters:
- file- file path
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML from the URLurl.- Parameters:
- url- URL path
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML from the URLurl.- Parameters:
- url- URL path
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML from theInputStreaminputStream.Note that the given inputStreamwill not be closed by this method.- Parameters:
- inputStream- the stream to read from
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
LoadXmlTries to load the configuration XML from theInputStreaminputStream.Note that the given inputStreamwill not be closed by this method.- Parameters:
- inputStream- the stream to read from
- charset- the charset used to load the configuration
- Returns:
- the configuration
- Throws:
- StorageConfigurationException- if the configuration couldn't be loaded
 
- 
exportXmlExports this configuration as XML.Note that the given outputStreamwill not be closed by this method.- Parameters:
- outputStream- the outputStream to write to
- Since:
- 3.1
 
- 
exportXmlExports this configuration as XML.Note that the given outputStreamwill not be closed by this method.- Parameters:
- outputStream- the outputStream to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
exportXmlExports this configuration as a XML file to the specified path.- Parameters:
- path- the path to write to
- Since:
- 3.1
 
- 
exportXmlExports this configuration as a XML file to the specified path.- Parameters:
- path- the path to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
exportXmlExports this configuration as a XML file.- Parameters:
- file- the file to write to
- Since:
- 3.1
 
- 
exportXmlExports this configuration as a XML file.- Parameters:
- file- the file to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
exportXmlExports this configuration as a XML file.- Parameters:
- url- the URL to write to
- Since:
- 3.1
 
- 
exportXmlExports this configuration as a XML file.- Parameters:
- url- the URL to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
exportIniExports this configuration as INI.Note that the given outputStreamwill not be closed by this method.- Parameters:
- outputStream- the outputStream to write to
- Since:
- 3.1
 
- 
exportIniExports this configuration as INI.Note that the given outputStreamwill not be closed by this method.- Parameters:
- outputStream- the outputStream to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
exportIniExports this configuration as an INI file to the specified path.- Parameters:
- path- the path to write to
- Since:
- 3.1
 
- 
exportIniExports this configuration as an INI file to the specified path.- Parameters:
- path- the path to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
exportIniExports this configuration as a INI file.- Parameters:
- file- the file to write to
- Since:
- 3.1
 
- 
exportIniExports this configuration as a INI file.- Parameters:
- file- the file to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
exportIniExports this configuration as a INI file.- Parameters:
- url- the URL to write to
- Since:
- 3.1
 
- 
exportIniExports this configuration as a INI file.- Parameters:
- url- the URL to write to
- charset- the charset used to export the configuration
- Since:
- 3.1
 
- 
createEmbeddedStorageFoundationCreates anEmbeddedStorageFoundationbased on the settings of thisConfiguration.- Returns:
- an EmbeddedStorageFoundation
- See Also:
- EmbeddedStorageFoundationCreator
 
- 
setBaseDirectoryThe base directory of the storage in the file system.
- 
setBaseDirectoryInUserHomeThe base directory of the storage in the file system.- Parameters:
- baseDirectoryInUserHome- relative location in the user home directory
 
- 
getBaseDirectoryString getBaseDirectory()The base directory of the storage in the file system.
- 
setDeletionDirectoryThe deletion directory.
- 
getDeletionDirectoryString getDeletionDirectory()The deletion directory.
- 
setTruncationDirectoryThe truncation directory.
- 
getTruncationDirectoryString getTruncationDirectory()The truncation directory.
- 
setBackupDirectoryThe backup directory.
- 
setBackupDirectoryInUserHomeThe backup directory.- Parameters:
- backupDirectoryInUserHome- relative location in the user home directory
 
- 
getBackupDirectoryString getBackupDirectory()The backup directory.
- 
setChannelCountThe number of threads and number of directories used by the storage engine. Every thread has exclusive access to its directory. Default is1.- Parameters:
- channelCount- the new channel count, must be a power of 2
 
- 
getChannelCountint getChannelCount()The number of threads and number of directories used by the storage engine. Every thread has exclusive access to its directory.
- 
setChannelDirectoryPrefixName prefix of the subdirectories used by the channel threads. Default is"channel_".- Parameters:
- channelDirectoryPrefix- new prefix
 
- 
getChannelDirectoryPrefixString getChannelDirectoryPrefix()Name prefix of the subdirectories used by the channel threads.
- 
setDataFilePrefixName prefix of the storage files. Default is"channel_".- Parameters:
- dataFilePrefix- new prefix
 
- 
getDataFilePrefixString getDataFilePrefix()Name prefix of the storage files.
- 
setDataFileSuffixName suffix of the storage files. Default is".dat".- Parameters:
- dataFileSuffix- new suffix
 
- 
getDataFileSuffixString getDataFileSuffix()Name suffix of the storage files.
- 
setTransactionFilePrefixName prefix of the storage transaction file. Default is"transactions_".- Parameters:
- transactionFilePrefix- new prefix
 
- 
getTransactionFilePrefixString getTransactionFilePrefix()Name prefix of the storage transaction file.
- 
setTransactionFileSuffixName suffix of the storage transaction file. Default is".sft".- Parameters:
- transactionFileSuffix- new suffix
 
- 
getTransactionFileSuffixString getTransactionFileSuffix()Name suffix of the storage transaction file.
- 
setTypeDictionaryFilenameThe name of the dictionary file. Default is"PersistenceTypeDictionary.ptd".- Parameters:
- typeDictionaryFilename- new name
 
- 
getTypeDictionaryFilenameString getTypeDictionaryFilename()The name of the dictionary file.
- 
setRescuedFileSuffix
- 
getRescuedFileSuffixString getRescuedFileSuffix()
- 
setLockFileName
- 
getLockFileNameString getLockFileName()
- 
setHouseKeepingIntervalDeprecated.replaced bysetHousekeepingIntervalMs(long), will be removed in a future release
- 
setHousekeepingIntervalMsInterval in milliseconds for the houskeeping. This is work like garbage collection or cache checking. In combination withsetHousekeepingTimeBudgetNs(long)the maximum processor time for housekeeping work can be set. Default is1000(every second).- Parameters:
- houseKeepingIntervalMs- the new interval
- See Also:
- setHousekeepingTimeBudgetNs(long)
 
- 
getHouseKeepingIntervalDeprecated.replaced bygetHousekeepingIntervalMs(), will be removed in a future release
- 
getHousekeepingIntervalMslong getHousekeepingIntervalMs()Interval in milliseconds for the houskeeping. This is work like garbage collection or cache checking.- See Also:
- getHousekeepingTimeBudgetNs()
 
- 
setHouseKeepingNanoTimeBudgetDeprecated.replaced bysetHousekeepingTimeBudgetNs(long), will be removed in a future release
- 
setHousekeepingTimeBudgetNsNumber of nanoseconds used for each housekeeping cycle. However, no matter how low the number is, one item of work will always be completed. But if there is nothing to clean up, no processor time will be wasted. Default is10000000(10 million nanoseconds = 10 milliseconds = 0.01 seconds).- Parameters:
- housekeepingTimeBudgetNs- the new time budget
- See Also:
- setHousekeepingIntervalMs(long)
 
- 
getHouseKeepingNanoTimeBudgetDeprecated.replaced bygetHousekeepingTimeBudgetNs(), will be removed in a future release
- 
getHousekeepingTimeBudgetNslong getHousekeepingTimeBudgetNs()Number of nanoseconds used for each housekeeping cycle. However, no matter how low the number is, one item of work will always be completed. But if there is nothing to clean up, no processor time will be wasted.- See Also:
- getHousekeepingIntervalMs()
 
- 
setEntityCacheThresholdAbstract threshold value for the lifetime of entities in the cache. SeeStorageEntityCacheEvaluator. Default is1000000000.- Parameters:
- entityCacheThreshold- the new threshold
 
- 
getEntityCacheThresholdlong getEntityCacheThreshold()Abstract threshold value for the lifetime of entities in the cache. SeeStorageEntityCacheEvaluator.
- 
setEntityCacheTimeoutDeprecated.replaced bysetEntityCacheTimeoutMs(long), will be removed in a future release
- 
setEntityCacheTimeoutMsTimeout in milliseconds for the entity cache evaluator. If an entity wasn't accessed in this timespan it will be removed from the cache. Default is86400000(1 day).- Parameters:
- entityCacheTimeoutMs-
- See Also:
- Duration
 
- 
getEntityCacheTimeoutDeprecated.replaced bygetEntityCacheTimeoutMs(), will be removed in a future release
- 
getEntityCacheTimeoutMslong getEntityCacheTimeoutMs()Timeout in milliseconds for the entity cache evaluator. If an entity wasn't accessed in this timespan it will be removed from the cache.
- 
setDataFileMinSizeDeprecated.replaced bysetDataFileMinimumSize(int), will be removed in a future release
- 
setDataFileMinimumSizeMinimum file size for a data file to avoid cleaning it up. Default is 1024^2 = 1 MiB.- Parameters:
- dataFileMinimumSize- the new minimum file size
- See Also:
- setDataFileMinimumUseRatio(double)
 
- 
getDataFileMinSizeDeprecated.replaced bygetDataFileMinimumSize(), will be removed in a future release
- 
getDataFileMinimumSizeint getDataFileMinimumSize()Minimum file size for a data file to avoid cleaning it up.- See Also:
- getDataFileMinimumUseRatio()
 
- 
setDataFileMaxSizeDeprecated.replaced bysetDataFileMaximumSize(int), will be removed in a future release
- 
setDataFileMaximumSizeMaximum file size for a data file to avoid cleaning it up. Default is 1024^2*8 = 8 MiB.- Parameters:
- dataFileMaximumSize- the new maximum file size
- See Also:
- setDataFileMinimumUseRatio(double)
 
- 
getDataFileMaxSizeDeprecated.replaced bygetDataFileMaximumSize(), will be removed in a future release
- 
getDataFileMaximumSizeint getDataFileMaximumSize()Maximum file size for a data file to avoid cleaning it up.- See Also:
- getDataFileMinimumUseRatio()
 
- 
setDataFileDissolveRatioDeprecated.replaced bysetDataFileMinimumUseRatio(double), will be removed in a future release
- 
setDataFileMinimumUseRatioThe ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved. "Gap" data is anything that is not the latest version of an entity's data, inluding older versions of an entity and "comment" bytes (a sequence of bytes beginning with its length as a negative value length header).
 The closer this value is to 1.0 (100%), the less disk space is occupied by storage files, but the more file dissolving (data transfers to new files) is required and vice versa.- Parameters:
- dataFileMinimumUseRatio- the new minimum use ratio
 
- 
getDataFileDissolveRatioDeprecated.replaced bygetDataFileMinimumUseRatio(), will be removed in a future release
- 
getDataFileMinimumUseRatiodouble getDataFileMinimumUseRatio()The ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved. "Gap" data is anything that is not the latest version of an entity's data, inluding older versions of an entity and "comment" bytes (a sequence of bytes beginning with its length as a negative value length header).
 The closer this value is to 1.0 (100%), the less disk space is occupied by storage files, but the more file dissolving (data transfers to new files) is required and vice versa.
- 
setDataFileCleanupHeadFileA flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.- Parameters:
- dataFileCleanupHeadFile-
 
- 
getDataFileCleanupHeadFileboolean getDataFileCleanupHeadFile()A flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.
- 
DefaultCreates a newConfigurationwith the default settings.- Returns:
- a new Configuration
- See Also:
- StorageFileProvider.Defaults,- StorageChannelCountProvider.Defaults,- StorageHousekeepingController.Defaults,- StorageEntityCacheEvaluator.Defaults,- StorageDataFileEvaluator.Defaults
 
 
-