influxdata / nifi-influxdb-bundle

InfluxDB Processors For Apache NiFi
Apache License 2.0
36 stars 10 forks source link

chore(deps): bump com.influxdb:influxdb-client-java from 6.11.0 to 6.12.0 #148

Closed dependabot[bot] closed 8 months ago

dependabot[bot] commented 9 months ago

Bumps com.influxdb:influxdb-client-java from 6.11.0 to 6.12.0.

Release notes

Sourced from com.influxdb:influxdb-client-java's releases.

6.12.0

Features

  1. #643: ConnectionClosingInterceptor interceptor closes connections that exceed a specified maximum lifetime age (TTL). It's beneficial for scenarios where your application requires establishing new connections to the same host after a predetermined interval.

The connection to the InfluxDB Enterprise with the ConnectionClosingInterceptor can be configured as follows:

package example;

import java.time.Duration; import java.util.Collections;

import okhttp3.OkHttpClient; import okhttp3.Protocol;

import com.influxdb.client.InfluxDBClient; import com.influxdb.client.InfluxDBClientFactory; import com.influxdb.client.InfluxDBClientOptions; import com.influxdb.client.domain.WriteConsistency; import com.influxdb.rest.ConnectionClosingInterceptor;

public class InfluxQLExample {

public static void main(final String[] args) throws InterruptedException {

    //
    // Credentials to connect to InfluxDB Enterprise
    //
    String url = "https://localhost:8086";
    String username = "admin";
    String password = "password";
    String database = "database";
    WriteConsistency consistency = WriteConsistency.ALL;

    //
    // Configure underlying HTTP client
    //
    OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()
            .protocols(Collections.singletonList(Protocol.HTTP_1_1));

    //
    // Use new Connection TTL feature
    //
    Duration connectionMaxAge = Duration.ofMinutes(1);
    ConnectionClosingInterceptor interceptor = new ConnectionClosingInterceptor(connectionMaxAge);
    okHttpClientBuilder
            .addNetworkInterceptor(interceptor)
            .eventListenerFactory(call -> interceptor);

</tr></table>

... (truncated)

Changelog

Sourced from com.influxdb:influxdb-client-java's changelog.

6.12.0 [2023-12-15]

Features

  1. #643: ConnectionClosingInterceptor interceptor closes connections that exceed a specified maximum lifetime age (TTL). It's beneficial for scenarios where your application requires establishing new connections to the same host after a predetermined interval.

The connection to the InfluxDB Enterprise with the ConnectionClosingInterceptor can be configured as follows:

package example;

import java.time.Duration; import java.util.Collections;

import okhttp3.OkHttpClient; import okhttp3.Protocol;

import com.influxdb.client.InfluxDBClient; import com.influxdb.client.InfluxDBClientFactory; import com.influxdb.client.InfluxDBClientOptions; import com.influxdb.client.domain.WriteConsistency; import com.influxdb.rest.ConnectionClosingInterceptor;

public class InfluxQLExample {

public static void main(final String[] args) throws InterruptedException {

    //
    // Credentials to connect to InfluxDB Enterprise
    //
    String url = &quot;https://localhost:8086&quot;;
    String username = &quot;admin&quot;;
    String password = &quot;password&quot;;
    String database = &quot;database&quot;;
    WriteConsistency consistency = WriteConsistency.ALL;

    //
    // Configure underlying HTTP client
    //
    OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()
            .protocols(Collections.singletonList(Protocol.HTTP_1_1));

    //
    // Use new Connection TTL feature
    //
    Duration connectionMaxAge = Duration.ofMinutes(1);
    ConnectionClosingInterceptor interceptor = new ConnectionClosingInterceptor(connectionMaxAge);
    okHttpClientBuilder
            .addNetworkInterceptor(interceptor)
            .eventListenerFactory(call -&gt; interceptor);

</tr></table>

... (truncated)

Commits
  • 7b9eedf [maven-release-plugin] prepare release v6.12.0
  • ed12666 chore(release): release version 6.12.0 [skip ci]
  • d05c6d2 feat: add HTTP connection interceptor which TTL configuration (#643)
  • 997599d chore(release): prepare for next development iteration
  • eaff542 [maven-release-plugin] prepare for next development iteration
  • See full diff in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)