Class DebounceBatchConfig.Builder

java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.strategy.DebounceBatchConfig.Builder
Enclosing class:
DebounceBatchConfig

public static class DebounceBatchConfig.Builder extends Object
A builder class for constructing DebounceBatchConfig instances.
  • 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

      public DebounceBatchConfig.Builder debounceTime(Duration debounceTime)
      Sets the debounce time for the configuration.
      Parameters:
      debounceTime - The minimum time to wait before processing a batch.
      Returns:
      The Builder instance.
    • debounceTimeMillis

      public DebounceBatchConfig.Builder debounceTimeMillis(long millis)
      Sets the debounce time in milliseconds.
      Parameters:
      millis - The minimum time to wait in milliseconds.
      Returns:
      The Builder instance.
    • maxWaitTime

      public DebounceBatchConfig.Builder maxWaitTime(Duration 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

      public DebounceBatchConfig.Builder maxWaitTimeMillis(long millis)
      Sets the maximum wait time in milliseconds.
      Parameters:
      millis - The maximum time to wait in milliseconds.
      Returns:
      The Builder instance.
    • maxBatchSize

      public DebounceBatchConfig.Builder maxBatchSize(int 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

      public DebounceBatchConfig build()
      Builds and returns a new DebounceBatchConfig instance.
      Returns:
      A new DebounceBatchConfig instance.