Class DebounceBatchConfig.Builder
java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.strategy.DebounceBatchConfig.Builder
- Enclosing class:
- DebounceBatchConfig
A builder class for constructing DebounceBatchConfig instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns a new DebounceBatchConfig instance.debounceTime
(Duration debounceTime) Sets the debounce time for the configuration.debounceTimeMillis
(long millis) Sets the debounce time in milliseconds.Sets the key for the configuration.maxBatchSize
(int maxBatchSize) Sets the maximum batch size for the configuration.maxWaitTime
(Duration maxWaitTime) Sets the maximum wait time for the configuration.maxWaitTimeMillis
(long millis) Sets the maximum wait time in milliseconds.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the key for the configuration.- Parameters:
key
- The unique identifier for the configuration.- Returns:
- The Builder instance.
-
debounceTime
Sets the debounce time for the configuration.- Parameters:
debounceTime
- The minimum time to wait before processing a batch.- Returns:
- The Builder instance.
-
debounceTimeMillis
Sets the debounce time in milliseconds.- Parameters:
millis
- The minimum time to wait in milliseconds.- Returns:
- The Builder instance.
-
maxWaitTime
Sets the maximum wait time for the configuration.- Parameters:
maxWaitTime
- The maximum time to wait before forcing a batch to process.- Returns:
- The Builder instance.
-
maxWaitTimeMillis
Sets the maximum wait time in milliseconds.- Parameters:
millis
- The maximum time to wait in milliseconds.- Returns:
- The Builder instance.
-
maxBatchSize
Sets the maximum batch size for the configuration.- Parameters:
maxBatchSize
- The maximum number of items allowed in a batch.- Returns:
- The Builder instance.
-
build
Builds and returns a new DebounceBatchConfig instance.- Returns:
- A new DebounceBatchConfig instance.
-