Interface InfluxDBBatchConfig.Builder

  • Method Details

    • maxBatchSize

      InfluxDBBatchConfig.Builder maxBatchSize(Integer maxBatchSize)

      The maximum number of data points to collect in a batch.

      If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.

      Parameters:
      maxBatchSize - The maximum number of data points to collect in a batch.

      If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxBatchOpenMs

      InfluxDBBatchConfig.Builder maxBatchOpenMs(Integer maxBatchOpenMs)

      The maximum length of time, in milliseconds, to keep a batch open before writing it to InfluxDB.

      If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.

      Parameters:
      maxBatchOpenMs - The maximum length of time, in milliseconds, to keep a batch open before writing it to InfluxDB.

      If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxBatchSizeBytes

      InfluxDBBatchConfig.Builder maxBatchSizeBytes(Integer maxBatchSizeBytes)

      The maximum size of a batch, in bytes, before IoT writes it to InfluxDB.

      If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.

      Parameters:
      maxBatchSizeBytes - The maximum size of a batch, in bytes, before IoT writes it to InfluxDB.

      If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • batchAcrossTopics

      InfluxDBBatchConfig.Builder batchAcrossTopics(Boolean batchAcrossTopics)

      Specifies whether to collect data points from different topics into the same batch.

      If omitted or false, IoT batches data points for each topic separately.

      Parameters:
      batchAcrossTopics - Specifies whether to collect data points from different topics into the same batch.

      If omitted or false, IoT batches data points for each topic separately.

      Returns:
      Returns a reference to this object so that method calls can be chained together.