public final class InfluxDBClientReactiveFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static InfluxDBClientReactive |
create()
Create an instance of the InfluxDB 2.0 client that is configured via
influx2.properties. |
static InfluxDBClientReactive |
create(InfluxDBClientOptions options)
Create an instance of the InfluxDB 2.0 reactive client.
|
static InfluxDBClientReactive |
create(String connectionString)
Create an instance of the InfluxDB 2.0 client.
|
static InfluxDBClientReactive |
create(String url,
char[] token)
Create an instance of the InfluxDB 2.0 reactive client.
|
static InfluxDBClientReactive |
create(String url,
char[] token,
String org)
Create an instance of the InfluxDB 2.0 reactive client.
|
static InfluxDBClientReactive |
create(String url,
char[] token,
String org,
String bucket)
Create an instance of the InfluxDB 2.0 reactive client.
|
static InfluxDBClientReactive |
create(String url,
String username,
char[] password)
Create an instance of the InfluxDB 2.0 reactive client.
|
@Nonnull public static InfluxDBClientReactive create()
influx2.properties.
The influx2.properties has to be located on classpath.@Nonnull public static InfluxDBClientReactive create(@Nonnull String connectionString)
e.g.: "http://localhost:8086?readTimeout=5000&connectTimeout=5000&logLevel=BASIC
connectionString - connection string with various configurations.@Nonnull public static InfluxDBClientReactive create(@Nonnull String url, @Nonnull String username, @Nonnull char[] password)
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.
url - the url to connect to the InfluxDBusername - the username to use in the basic authpassword - the password to use in the basic authInfluxDBClientOptions.Builder#url(String)@Nonnull public static InfluxDBClientReactive create(@Nonnull String url, @Nonnull char[] token)
url - the url to connect to the InfluxDBtoken - the token to use for the authorizationInfluxDBClientOptions.Builder#url(String)@Nonnull public static InfluxDBClientReactive create(@Nonnull String url, @Nonnull char[] token, @Nullable String org)
url - the url to connect to the InfluxDBtoken - the token to use for the authorizationorg - the name of an organizationInfluxDBClientOptions.Builder#url(String)@Nonnull public static InfluxDBClientReactive create(@Nonnull String url, @Nonnull char[] token, @Nullable String org, @Nullable String bucket)
url - the url to connect to the InfluxDBtoken - the token to use for the authorizationorg - the name of an organizationbucket - the name of a bucketInfluxDBClientOptions.Builder#url(String)@Nonnull public static InfluxDBClientReactive create(@Nonnull InfluxDBClientOptions options)
options - the connection configurationCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.