public static final class BatchPoints.Builder extends Object
Modifier and Type | Method and Description |
---|---|
BatchPoints |
build()
Create a new BatchPoints instance.
|
BatchPoints.Builder |
consistency(InfluxDB.ConsistencyLevel consistencyLevel)
Set the ConsistencyLevel to use.
|
BatchPoints.Builder |
point(Point pointToAdd)
Add a Point to this set of points.
|
BatchPoints.Builder |
points(Point... pointsToAdd)
Add a set of Points to this set of points.
|
BatchPoints.Builder |
retentionPolicy(String policy)
The retentionPolicy to use.
|
BatchPoints.Builder |
tag(String tagName,
String value)
Add a tag to this set of points.
|
public BatchPoints.Builder retentionPolicy(String policy)
policy
- public BatchPoints.Builder tag(String tagName, String value)
tagName
- the tag namevalue
- the tag valuepublic BatchPoints.Builder point(Point pointToAdd)
pointToAdd
- public BatchPoints.Builder points(Point... pointsToAdd)
pointsToAdd
- public BatchPoints.Builder consistency(InfluxDB.ConsistencyLevel consistencyLevel)
InfluxDB.ConsistencyLevel.ONE
consistencyLevel
- public BatchPoints build()
Copyright © 2016. All rights reserved.