Class DebounceBatchConfig.Builder
java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.strategy.DebounceBatchConfig.Builder
- Enclosing class:
DebounceBatchConfig
Builder for
DebounceBatchConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.debounceTime(Duration debounceTime) Sets the debounce time.debounceTimeMillis(long millis) Sets the debounce time in milliseconds.Sets the key.maxBatchSize(int maxBatchSize) Sets the maximum batch size.maxConcurrentFlushes(int maxConcurrentFlushes) Sets the maximum concurrent flushes; default1.maxWaitTime(Duration maxWaitTime) Sets the maximum wait time.maxWaitTimeMillis(long millis) Sets the maximum wait time in milliseconds.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the key.- Parameters:
key- the identifier.- Returns:
- this builder.
-
debounceTime
Sets the debounce time.- Parameters:
debounceTime- how long submissions must go idle before a flush.- Returns:
- this builder.
-
debounceTimeMillis
Sets the debounce time in milliseconds.- Parameters:
millis- the debounce time.- Returns:
- this builder.
-
maxWaitTime
Sets the maximum wait time.- Parameters:
maxWaitTime- the longest the oldest point waits before a flush is forced.- Returns:
- this builder.
-
maxWaitTimeMillis
Sets the maximum wait time in milliseconds.- Parameters:
millis- the maximum wait time.- Returns:
- this builder.
-
maxBatchSize
Sets the maximum batch size.- Parameters:
maxBatchSize- the maximum points per batch.- Returns:
- this builder.
-
maxConcurrentFlushes
Sets the maximum concurrent flushes; default1. SeeDebounceBatchConfig.maxConcurrentFlushesfor the requirements of using more than one.- Parameters:
maxConcurrentFlushes- the ceiling; must be at least 1.- Returns:
- this builder.
-
build
-