Class DiskBufferingConfig
-
- All Implemented Interfaces:
public final class DiskBufferingConfig
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanenabledprivate final IntegermaxCacheSizeprivate final LongmaxFileAgeForWriteMillisprivate final LongminFileAgeForReadMillisprivate final LongmaxFileAgeForReadMillisprivate final IntegermaxCacheFileSizeprivate final BooleandebugEnabledprivate final FilesignalsBufferDirprivate final LongexportPeriodMillis
-
Constructor Summary
Constructors Constructor Description DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir, Long exportPeriodMillis)DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir)DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled)DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize)DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis)DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis)DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis)DiskBufferingConfig(Boolean enabled, Integer maxCacheSize)DiskBufferingConfig(Boolean enabled)DiskBufferingConfig()
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()final IntegergetMaxCacheSize()final LonggetMaxFileAgeForWriteMillis()final LonggetMinFileAgeForReadMillis()final LonggetMaxFileAgeForReadMillis()final IntegergetMaxCacheFileSize()final BooleangetDebugEnabled()final FilegetSignalsBufferDir()The directory where the SDK stores the buffered signals before they are exported. final LonggetExportPeriodMillis()How often the exporter wakes up to read buffered signals from disk and send them. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir, Long exportPeriodMillis)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled, Integer maxCacheSize)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate(Boolean enabled)Convenience factory method that validates the min/max and fixes those up if needed. final static DiskBufferingConfigcreate()Convenience factory method that validates the min/max and fixes those up if needed. -
-
Constructor Detail
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir, Long exportPeriodMillis)
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir)
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled)
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize)
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis)
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis)
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis)
-
DiskBufferingConfig
DiskBufferingConfig(Boolean enabled)
-
DiskBufferingConfig
DiskBufferingConfig()
-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
-
getMaxCacheSize
final Integer getMaxCacheSize()
-
getMaxFileAgeForWriteMillis
final Long getMaxFileAgeForWriteMillis()
-
getMinFileAgeForReadMillis
final Long getMinFileAgeForReadMillis()
-
getMaxFileAgeForReadMillis
final Long getMaxFileAgeForReadMillis()
-
getMaxCacheFileSize
final Integer getMaxCacheFileSize()
-
getDebugEnabled
final Boolean getDebugEnabled()
-
getSignalsBufferDir
final File getSignalsBufferDir()
The directory where the SDK stores the buffered signals before they are exported. If
null, a default directory inside the application's cache directory will be used.
-
getExportPeriodMillis
final Long getExportPeriodMillis()
How often the exporter wakes up to read buffered signals from disk and send them.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir, Long exportPeriodMillis)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled, File signalsBufferDir)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize, Boolean debugEnabled)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis, Integer maxCacheFileSize)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis, Long maxFileAgeForReadMillis)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis, Long minFileAgeForReadMillis)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize, Long maxFileAgeForWriteMillis)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled, Integer maxCacheSize)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create(Boolean enabled)
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
create
@JvmOverloads() final static DiskBufferingConfig create()
Convenience factory method that validates the min/max and fixes those up if needed. Users should prefer this method over the vanilla non-validating constructor.
-
-
-
-