Class InfluxDBClientReactiveFactory
- Author:
- Jakub Bednar (bednar@github) (20/11/2018 07:09)
-
Method Summary
Modifier and TypeMethodDescriptionstatic InfluxDBClientReactive
create()
Create an instance of the InfluxDB 2.x client that is configured viainflux2.properties
.static InfluxDBClientReactive
create
(InfluxDBClientOptions options) Create an instance of the InfluxDB 2.x reactive client.static InfluxDBClientReactive
Create an instance of the InfluxDB 2.x client.static InfluxDBClientReactive
Create an instance of the InfluxDB 2.x reactive client.static InfluxDBClientReactive
Create an instance of the InfluxDB 2.x reactive client.static InfluxDBClientReactive
Create an instance of the InfluxDB 2.x reactive client.static InfluxDBClientReactive
Create an instance of the InfluxDB 2.x reactive client.
-
Method Details
-
create
Create an instance of the InfluxDB 2.x client that is configured viainflux2.properties
. Theinflux2.properties
has to be located on classpath.- Returns:
- client
-
create
Create an instance of the InfluxDB 2.x client.The url could be a connection string with various configurations. For more info see:
InfluxDBClientOptions.Builder.connectionString(String)
.- Parameters:
connectionString
- connection string with various configurations.- Returns:
- client
-
create
@Nonnull public static InfluxDBClientReactive create(@Nonnull String url, @Nonnull String username, @Nonnull char[] password) Create an instance of the InfluxDB 2.x reactive client.The username/password auth is based on HTTP "Basic" authentication. The authorization expires when the time-to-live (TTL) (default 60 minutes) is reached and client produces
UnauthorizedException
.The url could be a connection string with various configurations. For more info see:
InfluxDBClientOptions.Builder.connectionString(String)
.- Parameters:
url
- url the url to connect to InfluxDB (required). Example: http://localhost:8086?readTimeout=5000username
- the username to use in the basic authpassword
- the password to use in the basic auth- Returns:
- client
- See Also:
-
create
Create an instance of the InfluxDB 2.x reactive client.The url could be a connection string with various configurations. For more info see:
InfluxDBClientOptions.Builder.connectionString(String)
.- Parameters:
url
- url the url to connect to InfluxDB (required). Example: http://localhost:8086?readTimeout=5000token
- the token to use for the authorization- Returns:
- client
- See Also:
-
create
@Nonnull public static InfluxDBClientReactive create(@Nonnull String url, @Nonnull char[] token, @Nullable String org) Create an instance of the InfluxDB 2.x reactive client.The url could be a connection string with various configurations. For more info see:
InfluxDBClientOptions.Builder.connectionString(String)
.- Parameters:
url
- url the url to connect to InfluxDB (required). Example: http://localhost:8086?readTimeout=5000token
- the token to use for the authorizationorg
- the name of an organization- Returns:
- client
- See Also:
-
create
@Nonnull public static InfluxDBClientReactive create(@Nonnull String url, @Nonnull char[] token, @Nullable String org, @Nullable String bucket) Create an instance of the InfluxDB 2.x reactive client.The url could be a connection string with various configurations. For more info see:
InfluxDBClientOptions.Builder.connectionString(String)
.- Parameters:
url
- url the url to connect to InfluxDB (required). Example: http://localhost:8086?readTimeout=5000token
- the token to use for the authorizationorg
- the name of an organizationbucket
- the name of a bucket- Returns:
- client
- See Also:
-
create
Create an instance of the InfluxDB 2.x reactive client.- Parameters:
options
- the connection configuration- Returns:
- client
-