public final class InfluxDBClientOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InfluxDBClientOptions.AuthScheme
The scheme uses to Authentication.
|
static class |
InfluxDBClientOptions.Builder
A builder for
InfluxDBClientOptions. |
| Modifier and Type | Method and Description |
|---|---|
static InfluxDBClientOptions.Builder |
builder()
Creates a builder instance.
|
InfluxDBClientOptions.AuthScheme |
getAuthScheme() |
String |
getBucket() |
String |
getClientType()
If the
clientType is not specified the `java`, `kotlin` or `scala` is used depends on the type of client. |
WriteConsistency |
getConsistency()
The write consistency for the point.
|
LogLevel |
getLogLevel() |
okhttp3.OkHttpClient.Builder |
getOkHttpClient() |
String |
getOrg() |
char[] |
getPassword() |
PointSettings |
getPointSettings()
Default tags that will be use for writes by Point and POJO.
|
WritePrecision |
getPrecision() |
char[] |
getToken() |
String |
getUrl() |
String |
getUsername() |
@Nonnull public String getUrl()
InfluxDBClientOptions.Builder.url(String)@Nullable public String getClientType()
clientType is not specified the `java`, `kotlin` or `scala` is used depends on the type of client.InfluxDBClientOptions.Builder.clientType(String)@Nonnull public okhttp3.OkHttpClient.Builder getOkHttpClient()
InfluxDBClientOptions.Builder.okHttpClient(OkHttpClient.Builder)@Nonnull public LogLevel getLogLevel()
InfluxDBClientOptions.Builder.logLevel(LogLevel)@Nullable public InfluxDBClientOptions.AuthScheme getAuthScheme()
InfluxDBClientOptions.Builder.authenticateToken(char[]),
(char[])@Nullable public char[] getToken()
InfluxDBClientOptions.Builder.authenticateToken(char[])@Nullable public String getUsername()
InfluxDBClientOptions.Builder.authenticate(String, char[])@Nullable public char[] getPassword()
InfluxDBClientOptions.Builder.authenticate(String, char[])@Nullable public String getOrg()
InfluxDBClientOptions.Builder.org(String)@Nullable public String getBucket()
InfluxDBClientOptions.Builder.bucket(String)@Nonnull public WritePrecision getPrecision()
InfluxDBClientOptions.Builder.precision(WritePrecision)@Nullable public WriteConsistency getConsistency()
InfluxDB assumes that the write consistency is WriteConsistency.ONE if you do not specify consistency.
See the InfluxDB Enterprise documentation for
detailed descriptions of each consistency option.
Available with InfluxDB Enterprise clusters only!
InfluxDBClientOptions.Builder.consistency(WriteConsistency)@Nonnull public PointSettings getPointSettings()
InfluxDBClientOptions.Builder.addDefaultTag(String, String)@Nonnull public static InfluxDBClientOptions.Builder builder()
Copyright © 2018–2023 InfluxData, Inc.. All rights reserved.