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
Builder for DebounceBatchConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • key

      Sets the key.
      Parameters:
      key - the identifier.
      Returns:
      this builder.
    • debounceTime

      public DebounceBatchConfig.Builder debounceTime(Duration debounceTime)
      Sets the debounce time.
      Parameters:
      debounceTime - how long submissions must go idle before a flush.
      Returns:
      this builder.
    • debounceTimeMillis

      public DebounceBatchConfig.Builder debounceTimeMillis(long millis)
      Sets the debounce time in milliseconds.
      Parameters:
      millis - the debounce time.
      Returns:
      this builder.
    • maxWaitTime

      public DebounceBatchConfig.Builder maxWaitTime(Duration maxWaitTime)
      Sets the maximum wait time.
      Parameters:
      maxWaitTime - the longest the oldest point waits before a flush is forced.
      Returns:
      this builder.
    • maxWaitTimeMillis

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

      public DebounceBatchConfig.Builder maxBatchSize(int maxBatchSize)
      Sets the maximum batch size.
      Parameters:
      maxBatchSize - the maximum points per batch.
      Returns:
      this builder.
    • maxConcurrentFlushes

      public DebounceBatchConfig.Builder maxConcurrentFlushes(int maxConcurrentFlushes)
      Sets the maximum concurrent flushes; default 1. See DebounceBatchConfig.maxConcurrentFlushes for the requirements of using more than one.
      Parameters:
      maxConcurrentFlushes - the ceiling; must be at least 1.
      Returns:
      this builder.
    • build

      public DebounceBatchConfig build()
      Builds the configuration.
      Returns:
      the new configuration.