Interface Configuration
- All Known Implementing Classes:
Configuration.Default
@Deprecated public interface Configuration
EmbeddedStorageConfigurationBuilder, will be removed in a future release-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConfiguration.DefaultDeprecated. -
Method Summary
Modifier and Type Method Description default EmbeddedStorageFoundation<?>createEmbeddedStorageFoundation()Deprecated.Creates anEmbeddedStorageFoundationbased on the settings of thisConfiguration.static ConfigurationDefault()Deprecated.Creates a newConfigurationwith the default settings.static StringDefaultResourceName()Deprecated.The default name of the storage configuration resource.default voidexportIni(File file)Deprecated.Exports this configuration as a INI file.default voidexportIni(File file, Charset charset)Deprecated.Exports this configuration as a INI file.default voidexportIni(OutputStream outputStream)Deprecated.Exports this configuration as INI.default voidexportIni(OutputStream outputStream, Charset charset)Deprecated.Exports this configuration as INI.default voidexportIni(URL url)Deprecated.Exports this configuration as a INI file.default voidexportIni(URL url, Charset charset)Deprecated.Exports this configuration as a INI file.default voidexportIni(Path path)Deprecated.Exports this configuration as an INI file to the specified path.default voidexportIni(Path path, Charset charset)Deprecated.Exports this configuration as an INI file to the specified path.default voidexportXml(File file)Deprecated.Exports this configuration as a XML file.default voidexportXml(File file, Charset charset)Deprecated.Exports this configuration as a XML file.default voidexportXml(OutputStream outputStream)Deprecated.Exports this configuration as XML.default voidexportXml(OutputStream outputStream, Charset charset)Deprecated.Exports this configuration as XML.default voidexportXml(URL url)Deprecated.Exports this configuration as a XML file.default voidexportXml(URL url, Charset charset)Deprecated.Exports this configuration as a XML file.default voidexportXml(Path path)Deprecated.Exports this configuration as a XML file to the specified path.default voidexportXml(Path path, Charset charset)Deprecated.Exports this configuration as a XML file to the specified path.StringgetBackupDirectory()Deprecated.The backup directory.StringgetBaseDirectory()Deprecated.The base directory of the storage in the file system.intgetChannelCount()Deprecated.The number of threads and number of directories used by the storage engine.StringgetChannelDirectoryPrefix()Deprecated.Name prefix of the subdirectories used by the channel threads.booleangetDataFileCleanupHeadFile()Deprecated.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()Deprecated.Maximum file size for a data file to avoid cleaning it up.default intgetDataFileMaxSize()Deprecated.replaced bygetDataFileMaximumSize(), will be removed in a future releaseintgetDataFileMinimumSize()Deprecated.Minimum file size for a data file to avoid cleaning it up.doublegetDataFileMinimumUseRatio()Deprecated.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()Deprecated.Name prefix of the storage files.StringgetDataFileSuffix()Deprecated.Name suffix of the storage files.StringgetDeletionDirectory()Deprecated.The deletion directory.longgetEntityCacheThreshold()Deprecated.Abstract threshold value for the lifetime of entities in the cache.default longgetEntityCacheTimeout()Deprecated.replaced bygetEntityCacheTimeoutMs(), will be removed in a future releaselonggetEntityCacheTimeoutMs()Deprecated.Timeout in milliseconds for the entity cache evaluator.default longgetHouseKeepingInterval()Deprecated.replaced bygetHousekeepingIntervalMs(), will be removed in a future releaselonggetHousekeepingIntervalMs()Deprecated.Interval in milliseconds for the houskeeping.default longgetHouseKeepingNanoTimeBudget()Deprecated.replaced bygetHousekeepingTimeBudgetNs(), will be removed in a future releaselonggetHousekeepingTimeBudgetNs()Deprecated.Number of nanoseconds used for each housekeeping cycle.StringgetLockFileName()Deprecated.StringgetRescuedFileSuffix()Deprecated.StringgetTransactionFilePrefix()Deprecated.Name prefix of the storage transaction file.StringgetTransactionFileSuffix()Deprecated.Name suffix of the storage transaction file.StringgetTruncationDirectory()Deprecated.The truncation directory.StringgetTypeDictionaryFilename()Deprecated.The name of the dictionary file.static ConfigurationLoad()Deprecated.replaced byEmbeddedStorageConfiguration.load()static ConfigurationLoad(String path)Deprecated.replaced byEmbeddedStorageConfiguration.load(String)static ConfigurationLoad(String path, Charset charset)Deprecated.static ConfigurationLoad(Charset charset)Deprecated.replaced byEmbeddedStorageConfiguration.load(Charset)static ConfigurationLoadIni(File file)Deprecated.Tries to load the configuration INI from the filefile.static ConfigurationLoadIni(File file, Charset charset)Deprecated.Tries to load the configuration INI from the filefile.static ConfigurationLoadIni(InputStream inputStream)Deprecated.Tries to load the configuration INI from theInputStreaminputStream.static ConfigurationLoadIni(InputStream inputStream, Charset charset)Deprecated.Tries to load the configuration INI from theInputStreaminputStream.static ConfigurationLoadIni(String path)Deprecated.Tries to load the configuration INI file frompath.static ConfigurationLoadIni(String path, Charset charset)Deprecated.Tries to load the configuration INI file frompath.static ConfigurationLoadIni(URL url)Deprecated.Tries to load the configuration INI from the URLurl.static ConfigurationLoadIni(URL url, Charset charset)Deprecated.Tries to load the configuration INI from the URLurl.static ConfigurationLoadIni(Path path)Deprecated.Tries to load the configuration INI file frompath.static ConfigurationLoadIni(Path path, Charset charset)Deprecated.Tries to load the configuration INI file frompath.static ConfigurationLoadXml(File file)Deprecated.Tries to load the configuration XML from the filefile.static ConfigurationLoadXml(File file, Charset charset)Deprecated.Tries to load the configuration XML from the filefile.static ConfigurationLoadXml(InputStream inputStream)Deprecated.Tries to load the configuration XML from theInputStreaminputStream.static ConfigurationLoadXml(InputStream inputStream, Charset charset)Deprecated.Tries to load the configuration XML from theInputStreaminputStream.static ConfigurationLoadXml(String path)Deprecated.Tries to load the configuration XML file frompath.static ConfigurationLoadXml(String path, Charset charset)Deprecated.Tries to load the configuration XML file frompath.static ConfigurationLoadXml(URL url)Deprecated.Tries to load the configuration XML from the URLurl.static ConfigurationLoadXml(URL url, Charset charset)Deprecated.Tries to load the configuration XML from the URLurl.static ConfigurationLoadXml(Path path)Deprecated.Tries to load the configuration XML file frompath.static ConfigurationLoadXml(Path path, Charset charset)Deprecated.Tries to load the configuration XML file frompath.static StringPathProperty()Deprecated.The property name which is used to hand the external configuration file path to the application.ConfigurationsetBackupDirectory(String backupDirectory)Deprecated.The backup directory.default ConfigurationsetBackupDirectoryInUserHome(String backupDirectoryInUserHome)Deprecated.The backup directory.ConfigurationsetBaseDirectory(String baseDirectory)Deprecated.The base directory of the storage in the file system.default ConfigurationsetBaseDirectoryInUserHome(String baseDirectoryInUserHome)Deprecated.The base directory of the storage in the file system.ConfigurationsetChannelCount(int channelCount)Deprecated.The number of threads and number of directories used by the storage engine.ConfigurationsetChannelDirectoryPrefix(String channelDirectoryPrefix)Deprecated.Name prefix of the subdirectories used by the channel threads.ConfigurationsetDataFileCleanupHeadFile(boolean dataFileCleanupHeadFile)Deprecated.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)Deprecated.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)Deprecated.Minimum file size for a data file to avoid cleaning it up.ConfigurationsetDataFileMinimumUseRatio(double dataFileMinimumUseRatio)Deprecated.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)Deprecated.Name prefix of the storage files.ConfigurationsetDataFileSuffix(String dataFileSuffix)Deprecated.Name suffix of the storage files.ConfigurationsetDeletionDirectory(String deletionDirectory)Deprecated.The deletion directory.ConfigurationsetEntityCacheThreshold(long entityCacheThreshold)Deprecated.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)Deprecated.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)Deprecated.Interval in milliseconds for the houskeeping.default ConfigurationsetHouseKeepingNanoTimeBudget(long houseKeepingNanoTimeBudget)Deprecated.replaced bysetHousekeepingTimeBudgetNs(long), will be removed in a future releaseConfigurationsetHousekeepingTimeBudgetNs(long housekeepingTimeBudgetNs)Deprecated.Number of nanoseconds used for each housekeeping cycle.ConfigurationsetLockFileName(String lockFileName)Deprecated.ConfigurationsetRescuedFileSuffix(String rescuedFileSuffix)Deprecated.ConfigurationsetTransactionFilePrefix(String transactionFilePrefix)Deprecated.Name prefix of the storage transaction file.ConfigurationsetTransactionFileSuffix(String transactionFileSuffix)Deprecated.Name suffix of the storage transaction file.ConfigurationsetTruncationDirectory(String truncationDirectory)Deprecated.The truncation directory.ConfigurationsetTypeDictionaryFilename(String typeDictionaryFilename)Deprecated.The name of the dictionary file.
-
Method Details
-
PathProperty
Deprecated.The 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"
-
DefaultResourceName
Deprecated.The default name of the storage configuration resource.- Returns:
- "microstream-storage.properties"
- See Also:
Load()
-
Load
Deprecated.replaced byEmbeddedStorageConfiguration.load()Tries 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()
-
Load
Deprecated.replaced byEmbeddedStorageConfiguration.load(Charset)Tries 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()
-
Load
Deprecated.replaced byEmbeddedStorageConfiguration.load(String)Tries 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
-
Load
Deprecated.Tries 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 URLcharset- the charset used to load the configuration- Returns:
- the configuration or
nullif none was found
-
LoadIni
Deprecated.Tries 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
-
LoadIni
Deprecated.Tries 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 URLcharset- the charset used to load the configuration- Returns:
- the configuration or
nullif none was found
-
LoadIni
Deprecated.Tries to load the configuration INI file frompath.- Parameters:
path- file system path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadIni
Deprecated.Tries to load the configuration INI file frompath.- Parameters:
path- file system pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadIni
Deprecated.Tries to load the configuration INI from the filefile.- Parameters:
file- file path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadIni
Deprecated.Tries to load the configuration INI from the filefile.- Parameters:
file- file pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadIni
Deprecated.Tries to load the configuration INI from the URLurl.- Parameters:
url- URL path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadIni
Deprecated.Tries to load the configuration INI from the URLurl.- Parameters:
url- URL pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadIni
Deprecated.Tries 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
-
LoadIni
Deprecated.Tries to load the configuration INI from theInputStreaminputStream.Note that the given
inputStreamwill not be closed by this method.- Parameters:
inputStream- the stream to read fromcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadXml
Deprecated.Tries 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
-
LoadXml
Deprecated.Tries 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 URLcharset- the charset used to load the configuration- Returns:
- the configuration or
nullif none was found
-
LoadXml
Deprecated.Tries to load the configuration XML file frompath.- Parameters:
path- file system path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadXml
Deprecated.Tries to load the configuration XML file frompath.- Parameters:
path- file system pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadXml
Deprecated.Tries to load the configuration XML from the filefile.- Parameters:
file- file path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadXml
Deprecated.Tries to load the configuration XML from the filefile.- Parameters:
file- file pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadXml
Deprecated.Tries to load the configuration XML from the URLurl.- Parameters:
url- URL path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadXml
Deprecated.Tries to load the configuration XML from the URLurl.- Parameters:
url- URL pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
LoadXml
Deprecated.Tries 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
-
LoadXml
Deprecated.Tries to load the configuration XML from theInputStreaminputStream.Note that the given
inputStreamwill not be closed by this method.- Parameters:
inputStream- the stream to read fromcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
exportXml
Deprecated.Exports 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
-
exportXml
Deprecated.Exports this configuration as XML.Note that the given
outputStreamwill not be closed by this method.- Parameters:
outputStream- the outputStream to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
exportXml
Deprecated.Exports this configuration as a XML file to the specified path.- Parameters:
path- the path to write to- Since:
- 3.1
-
exportXml
Deprecated.Exports this configuration as a XML file to the specified path.- Parameters:
path- the path to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
exportXml
Deprecated.Exports this configuration as a XML file.- Parameters:
file- the file to write to- Since:
- 3.1
-
exportXml
Deprecated.Exports this configuration as a XML file.- Parameters:
file- the file to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
exportXml
Deprecated.Exports this configuration as a XML file.- Parameters:
url- the URL to write to- Since:
- 3.1
-
exportXml
Deprecated.Exports this configuration as a XML file.- Parameters:
url- the URL to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
exportIni
Deprecated.Exports 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
-
exportIni
Deprecated.Exports this configuration as INI.Note that the given
outputStreamwill not be closed by this method.- Parameters:
outputStream- the outputStream to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
exportIni
Deprecated.Exports this configuration as an INI file to the specified path.- Parameters:
path- the path to write to- Since:
- 3.1
-
exportIni
Deprecated.Exports this configuration as an INI file to the specified path.- Parameters:
path- the path to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
exportIni
Deprecated.Exports this configuration as a INI file.- Parameters:
file- the file to write to- Since:
- 3.1
-
exportIni
Deprecated.Exports this configuration as a INI file.- Parameters:
file- the file to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
exportIni
Deprecated.Exports this configuration as a INI file.- Parameters:
url- the URL to write to- Since:
- 3.1
-
exportIni
Deprecated.Exports this configuration as a INI file.- Parameters:
url- the URL to write tocharset- the charset used to export the configuration- Since:
- 3.1
-
createEmbeddedStorageFoundation
Deprecated.Creates anEmbeddedStorageFoundationbased on the settings of thisConfiguration.- Returns:
- an
EmbeddedStorageFoundation - See Also:
EmbeddedStorageFoundationCreator
-
setBaseDirectory
Deprecated.The base directory of the storage in the file system. -
setBaseDirectoryInUserHome
Deprecated.The base directory of the storage in the file system.- Parameters:
baseDirectoryInUserHome- relative location in the user home directory
-
getBaseDirectory
String getBaseDirectory()Deprecated.The base directory of the storage in the file system. -
setDeletionDirectory
Deprecated.The deletion directory. -
getDeletionDirectory
String getDeletionDirectory()Deprecated.The deletion directory. -
setTruncationDirectory
Deprecated.The truncation directory. -
getTruncationDirectory
String getTruncationDirectory()Deprecated.The truncation directory. -
setBackupDirectory
Deprecated.The backup directory. -
setBackupDirectoryInUserHome
Deprecated.The backup directory.- Parameters:
backupDirectoryInUserHome- relative location in the user home directory
-
getBackupDirectory
String getBackupDirectory()Deprecated.The backup directory. -
setChannelCount
Deprecated.The 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
-
getChannelCount
int getChannelCount()Deprecated.The number of threads and number of directories used by the storage engine. Every thread has exclusive access to its directory. -
setChannelDirectoryPrefix
Deprecated.Name prefix of the subdirectories used by the channel threads. Default is"channel_".- Parameters:
channelDirectoryPrefix- new prefix
-
getChannelDirectoryPrefix
String getChannelDirectoryPrefix()Deprecated.Name prefix of the subdirectories used by the channel threads. -
setDataFilePrefix
Deprecated.Name prefix of the storage files. Default is"channel_".- Parameters:
dataFilePrefix- new prefix
-
getDataFilePrefix
String getDataFilePrefix()Deprecated.Name prefix of the storage files. -
setDataFileSuffix
Deprecated.Name suffix of the storage files. Default is".dat".- Parameters:
dataFileSuffix- new suffix
-
getDataFileSuffix
String getDataFileSuffix()Deprecated.Name suffix of the storage files. -
setTransactionFilePrefix
Deprecated.Name prefix of the storage transaction file. Default is"transactions_".- Parameters:
transactionFilePrefix- new prefix
-
getTransactionFilePrefix
String getTransactionFilePrefix()Deprecated.Name prefix of the storage transaction file. -
setTransactionFileSuffix
Deprecated.Name suffix of the storage transaction file. Default is".sft".- Parameters:
transactionFileSuffix- new suffix
-
getTransactionFileSuffix
String getTransactionFileSuffix()Deprecated.Name suffix of the storage transaction file. -
setTypeDictionaryFilename
Deprecated.The name of the dictionary file. Default is"PersistenceTypeDictionary.ptd".- Parameters:
typeDictionaryFilename- new name
-
getTypeDictionaryFilename
String getTypeDictionaryFilename()Deprecated.The name of the dictionary file. -
setRescuedFileSuffix
Deprecated. -
getRescuedFileSuffix
String getRescuedFileSuffix()Deprecated. -
setLockFileName
Deprecated. -
getLockFileName
String getLockFileName()Deprecated. -
setHouseKeepingInterval
Deprecated.replaced bysetHousekeepingIntervalMs(long), will be removed in a future release -
setHousekeepingIntervalMs
Deprecated.Interval 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)
-
getHouseKeepingInterval
Deprecated.replaced bygetHousekeepingIntervalMs(), will be removed in a future release -
getHousekeepingIntervalMs
long getHousekeepingIntervalMs()Deprecated.Interval in milliseconds for the houskeeping. This is work like garbage collection or cache checking.- See Also:
getHousekeepingTimeBudgetNs()
-
setHouseKeepingNanoTimeBudget
Deprecated.replaced bysetHousekeepingTimeBudgetNs(long), will be removed in a future release -
setHousekeepingTimeBudgetNs
Deprecated.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. Default is10000000(10 million nanoseconds = 10 milliseconds = 0.01 seconds).- Parameters:
housekeepingTimeBudgetNs- the new time budget- See Also:
setHousekeepingIntervalMs(long)
-
getHouseKeepingNanoTimeBudget
Deprecated.replaced bygetHousekeepingTimeBudgetNs(), will be removed in a future release -
getHousekeepingTimeBudgetNs
long getHousekeepingTimeBudgetNs()Deprecated.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()
-
setEntityCacheThreshold
Deprecated.Abstract threshold value for the lifetime of entities in the cache. SeeStorageEntityCacheEvaluator. Default is1000000000.- Parameters:
entityCacheThreshold- the new threshold
-
getEntityCacheThreshold
long getEntityCacheThreshold()Deprecated.Abstract threshold value for the lifetime of entities in the cache. SeeStorageEntityCacheEvaluator. -
setEntityCacheTimeout
Deprecated.replaced bysetEntityCacheTimeoutMs(long), will be removed in a future release -
setEntityCacheTimeoutMs
Deprecated.Timeout 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
-
getEntityCacheTimeout
Deprecated.replaced bygetEntityCacheTimeoutMs(), will be removed in a future release -
getEntityCacheTimeoutMs
long getEntityCacheTimeoutMs()Deprecated.Timeout in milliseconds for the entity cache evaluator. If an entity wasn't accessed in this timespan it will be removed from the cache. -
setDataFileMinSize
Deprecated.replaced bysetDataFileMinimumSize(int), will be removed in a future release -
setDataFileMinimumSize
Deprecated.Minimum 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)
-
getDataFileMinSize
Deprecated.replaced bygetDataFileMinimumSize(), will be removed in a future release -
getDataFileMinimumSize
int getDataFileMinimumSize()Deprecated.Minimum file size for a data file to avoid cleaning it up.- See Also:
getDataFileMinimumUseRatio()
-
setDataFileMaxSize
Deprecated.replaced bysetDataFileMaximumSize(int), will be removed in a future release -
setDataFileMaximumSize
Deprecated.Maximum 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)
-
getDataFileMaxSize
Deprecated.replaced bygetDataFileMaximumSize(), will be removed in a future release -
getDataFileMaximumSize
int getDataFileMaximumSize()Deprecated.Maximum file size for a data file to avoid cleaning it up.- See Also:
getDataFileMinimumUseRatio()
-
setDataFileDissolveRatio
Deprecated.replaced bysetDataFileMinimumUseRatio(double), will be removed in a future release -
setDataFileMinimumUseRatio
Deprecated.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.- Parameters:
dataFileMinimumUseRatio- the new minimum use ratio
-
getDataFileDissolveRatio
Deprecated.replaced bygetDataFileMinimumUseRatio(), will be removed in a future release -
getDataFileMinimumUseRatio
double getDataFileMinimumUseRatio()Deprecated.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. -
setDataFileCleanupHeadFile
Deprecated.A flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.- Parameters:
dataFileCleanupHeadFile-
-
getDataFileCleanupHeadFile
boolean getDataFileCleanupHeadFile()Deprecated.A flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well. -
Default
Deprecated.Creates a newConfigurationwith the default settings.
-