Package com.influxdb.v3.client.write
Class WriteOptions.Builder
java.lang.Object
com.influxdb.v3.client.write.WriteOptions.Builder
- Enclosing class:
- WriteOptions
A builder for
WriteOptions
.
Mutable.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance ofClientConfig
.Sets the database.defaultTags
(Map<String, String> defaultTags) Sets defaultTags.gzipThreshold
(Integer gzipThreshold) Sets the GZIp threshold.Sets the headers.precision
(WritePrecision precision) Sets the precision.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
database
Sets the database.- Parameters:
database
- database- Returns:
- this
-
precision
Sets the precision.- Parameters:
precision
- precision- Returns:
- this
-
gzipThreshold
Sets the GZIp threshold.- Parameters:
gzipThreshold
- body size threshold for compression using GZIP- Returns:
- this
-
defaultTags
Sets defaultTags.- Parameters:
defaultTags
- to be used when writing points- Returns:
- this
-
headers
Sets the headers.- Parameters:
headers
- headers- Returns:
- this
-
build
Build an instance ofClientConfig
.- Returns:
- the configuration for an
InfluxDBClient
.
-