-
public class PersistenceConfiguration.Builder
-
-
Field Summary
Fields Modifier and Type Field Description public booleanenabledprivate intmaxCacheSizepublic ExportSchedulerexportScheduler
-
Method Summary
Modifier and Type Method Description PersistenceConfiguration.BuildersetEnabled(boolean enabled)Enables/disables the feature to store signal items in disk and exporting them later.Disabled by default. PersistenceConfiguration.BuildersetMaxCacheSize(int maxCacheSize)Sets the maximum amount of bytes that this tool can use to store cached signals in disk.A smaller amount of space will be used if there's not enough space in disk to allocatethe value set in here. PersistenceConfiguration.BuildersetExportScheduler(ExportScheduler exportScheduler)Sets a scheduler that will take care of periodically read data stored in disk andexport it. PersistenceConfigurationbuild()-
-
Method Detail
-
setEnabled
PersistenceConfiguration.Builder setEnabled(boolean enabled)
Enables/disables the feature to store signal items in disk and exporting them later.Disabled by default.
-
setMaxCacheSize
PersistenceConfiguration.Builder setMaxCacheSize(int maxCacheSize)
Sets the maximum amount of bytes that this tool can use to store cached signals in disk.A smaller amount of space will be used if there's not enough space in disk to allocatethe value set in here.
-
setExportScheduler
PersistenceConfiguration.Builder setExportScheduler(ExportScheduler exportScheduler)
Sets a scheduler that will take care of periodically read data stored in disk andexport it.
-
build
PersistenceConfiguration build()
-
-
-
-