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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptPartial(Boolean acceptPartial) Sets whether to request partial write acceptance.build()Build an instance ofClientConfig.Sets the database.defaultTags(Map<String, String> defaultTags) Sets defaultTags.gzipThreshold(Integer gzipThreshold) Sets the GZIp threshold.Sets the headers.Sets whether to skip waiting for WAL persistence on write.precision(WritePrecision precision) Sets the precision.Sets preferred tag order for line protocol serialization.Sets whether to use V2 API endpoint.
-
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
-
noSync
Sets whether to skip waiting for WAL persistence on write.- Parameters:
noSync- skip waiting for WAL persistence on write.- Returns:
- this
-
acceptPartial
Sets whether to request partial write acceptance.- Parameters:
acceptPartial- request partial write acceptance- Returns:
- this
-
useV2Api
Sets whether to use V2 API endpoint.- Parameters:
useV2Api- use V2 API endpoint- Returns:
- this
-
defaultTags
Sets defaultTags.- Parameters:
defaultTags- to be used when writing points- Returns:
- this
-
tagOrder
Sets preferred tag order for line protocol serialization.- Parameters:
tagOrder- tag order preference. Null or empty tag names are ignored.- Returns:
- this
-
headers
Sets the headers.- Parameters:
headers- headers- Returns:
- this
-
build
Build an instance ofClientConfig.- Returns:
- the configuration for an
InfluxDBClient.
-