Package com.influxdb.client.flux
Class FluxConnectionOptions.Builder
java.lang.Object
com.influxdb.client.flux.FluxConnectionOptions.Builder
- Enclosing class:
FluxConnectionOptions
A builder for
FluxConnectionOptions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance of FluxConnectionOptions.okHttpClient
(okhttp3.OkHttpClient.Builder okHttpClient) Set the HTTP client to use for communication with Flux.Set the url to connect to Flux.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
url
Set the url to connect to Flux.- Parameters:
url
- the url to connect to Flux. It must be defined.- Returns:
this
-
withParam
-
okHttpClient
@Nonnull public FluxConnectionOptions.Builder okHttpClient(@Nonnull okhttp3.OkHttpClient.Builder okHttpClient) Set the HTTP client to use for communication with Flux.- Parameters:
okHttpClient
- the HTTP client to use.- Returns:
this
-
build
Build an instance of FluxConnectionOptions.- Returns:
FluxConnectionOptions
-