Package com.influxdb.client
Class InfluxDBClientOptions
java.lang.Object
com.influxdb.client.InfluxDBClientOptions
InfluxDBClientOptions are used to configure theInfluxDB 2.x connections.
- Author:
- Jakub Bednar (bednar@github) (05/09/2018 10:22)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The scheme uses to Authentication.static class
A builder forInfluxDBClientOptions
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder instance.If theclientType
is not specified the `java`, `kotlin` or `scala` is used depends on the type of client.The write consistency for the point.okhttp3.OkHttpClient.Builder
getOrg()
char[]
Default tags that will be use for writes by Point and POJO.char[]
getToken()
getUrl()
-
Method Details
-
getUrl
- Returns:
- the url to connect to InfluxDB
- See Also:
-
getClientType
If theclientType
is not specified the `java`, `kotlin` or `scala` is used depends on the type of client.- Returns:
- the client type to report as a part of User-Agent to remote server
- See Also:
-
getOkHttpClient
@Nonnull public okhttp3.OkHttpClient.Builder getOkHttpClient()- Returns:
- HTTP client to use for communication with InfluxDB
- See Also:
-
getLogLevel
- Returns:
- The log level for the request and response information.
- See Also:
-
getAuthScheme
- Returns:
- the authorization scheme
- See Also:
-
getToken
@Nullable public char[] getToken()- Returns:
- the token to use for the authorization
- See Also:
-
getUsername
- Returns:
- the username to use in the basic auth
- See Also:
-
getPassword
@Nullable public char[] getPassword()- Returns:
- the password to use in the basic auth
- See Also:
-
getOrg
- Returns:
- the default destination organization for writes and queries
- See Also:
-
getBucket
- Returns:
- default destination bucket for writes
- See Also:
-
getPrecision
- Returns:
- default precision for unix timestamps in the line protocol
- See Also:
-
getConsistency
The write consistency for the point.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!- Returns:
- the write consistency for the point.
- See Also:
-
getPointSettings
Default tags that will be use for writes by Point and POJO.- Returns:
- default tags
- See Also:
-
builder
Creates a builder instance.- Returns:
- a builder
-