Example usage for org.springframework.boot.autoconfigure.influx InfluxDbOkHttpClientBuilderProvider get

List of usage examples for org.springframework.boot.autoconfigure.influx InfluxDbOkHttpClientBuilderProvider get

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.influx InfluxDbOkHttpClientBuilderProvider get.

Prototype

T get();

Source Link

Document

Gets a result.

Usage

From source file:org.springframework.boot.autoconfigure.influx.InfluxDbAutoConfiguration.java

@Deprecated
private static OkHttpClient.Builder determineBuilder(InfluxDbOkHttpClientBuilderProvider builder,
        OkHttpClient.Builder deprecatedBuilder) {
    if (builder != null) {
        return builder.get();
    } else if (deprecatedBuilder != null) {
        logger.warn("InfluxDB client customizations using a OkHttpClient.Builder is deprecated, register a "
                + InfluxDbOkHttpClientBuilderProvider.class.getSimpleName() + " bean instead");
        return deprecatedBuilder;
    }// ww w  .j a v  a 2 s  . co  m
    return new OkHttpClient.Builder();
}