@ThreadSafe public interface WriteApiBlocking
The data are formatted in Line Protocol.
| Modifier and Type | Method and Description |
|---|---|
<M> void |
writeMeasurement(M measurement,
WriteParameters parameters)
Write Measurement into specified bucket.
|
<M> void |
writeMeasurement(String bucket,
String org,
WritePrecision precision,
M measurement)
Write Measurement into specified bucket.
|
<M> void |
writeMeasurement(WritePrecision precision,
M measurement)
Write Measurement into specified bucket.
|
<M> void |
writeMeasurements(List<M> measurements,
WriteParameters parameters)
Write Measurements into specified bucket.
|
<M> void |
writeMeasurements(String bucket,
String org,
WritePrecision precision,
List<M> measurements)
Write Measurements into specified bucket.
|
<M> void |
writeMeasurements(WritePrecision precision,
List<M> measurements)
Write Measurements into specified bucket.
|
void |
writePoint(Point point)
Write Data point into specified bucket.
|
void |
writePoint(Point point,
WriteParameters parameters)
Write Data point into specified bucket.
|
void |
writePoint(String bucket,
String org,
Point point)
Write Data point into specified bucket.
|
void |
writePoints(List<Point> points)
Write Data points into specified bucket.
|
void |
writePoints(List<Point> points,
WriteParameters parameters)
Write Data points into specified bucket.
|
void |
writePoints(String bucket,
String org,
List<Point> points)
Write Data points into specified bucket.
|
void |
writeRecord(String bucket,
String org,
WritePrecision precision,
String record)
Write Line Protocol record into specified bucket.
|
void |
writeRecord(String record,
WriteParameters parameters)
Write Line Protocol record into specified bucket.
|
void |
writeRecord(WritePrecision precision,
String record)
Write Line Protocol record into specified bucket.
|
void |
writeRecords(List<String> records,
WriteParameters parameters)
Write Line Protocol records into specified bucket.
|
void |
writeRecords(String bucket,
String org,
WritePrecision precision,
List<String> records)
Write Line Protocol records into specified bucket.
|
void |
writeRecords(WritePrecision precision,
List<String> records)
Write Line Protocol records into specified bucket.
|
void writeRecord(@Nonnull WritePrecision precision, @Nullable String record) throws InfluxException
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeRecord(WritePrecision, String).
precision - specifies the precision for the unix timestamps within the body line-protocol (optional)record - specifies the record in InfluxDB Line Protocol.
The record is considered as one batch unit.InfluxException - if a problem occurred during write time-series data into InfluxDBvoid writeRecord(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nullable String record) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeRecords(String, String, WritePrecision, List).
bucket - specifies the destination bucket for writesorg - specifies the destination organization for writesprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)record - specifies the record in InfluxDB Line Protocol.
The record is considered as one batch unit.InfluxException - if a problem occurred during write time-series data into InfluxDBvoid writeRecord(@Nullable String record, @Nonnull WriteParameters parameters) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeRecord(String, WriteParameters).
record - specifies the record in InfluxDB Line Protocol.
The record is considered as one batch unit.parameters - specify InfluxDB Write endpoint parametersInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writeRecords(@Nonnull WritePrecision precision, @Nonnull List<String> records) throws InfluxException
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeRecords(WritePrecision, List).
precision - specifies the precision for the unix timestamps within the body line-protocol (optional)records - specifies the records in InfluxDB Line ProtocolInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writeRecords(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull List<String> records) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeRecords(String, String, WritePrecision, List).
bucket - specifies the destination bucket for writesorg - specifies the destination organization for writesprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)records - specifies the records in InfluxDB Line ProtocolInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writeRecords(@Nonnull List<String> records, @Nonnull WriteParameters parameters) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeRecords(List, WriteParameters).
records - specifies the records in InfluxDB Line Protocolparameters - specify InfluxDB Write endpoint parametersInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writePoint(@Nullable Point point) throws InfluxException
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writePoint(Point).
point - specifies the Data point to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writePoint(@Nonnull String bucket, @Nonnull String org, @Nullable Point point) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writePoint(String, String, Point).
bucket - specifies the destination bucket for writesorg - specifies the destination organization for writespoint - specifies the Data point to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writePoint(@Nullable Point point, @Nonnull WriteParameters parameters) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writePoint(Point, WriteParameters).
point - specifies the Data point to write into bucketparameters - specify InfluxDB Write endpoint parametersInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writePoints(@Nonnull List<Point> points) throws InfluxException
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writePoints(List).
points - specifies the Data points to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writePoints(@Nonnull String bucket, @Nonnull String org, @Nonnull List<Point> points) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writePoints(String, String, List).
bucket - specifies the destination bucket ID for writesorg - specifies the destination organization ID for writespoints - specifies the Data points to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDBvoid writePoints(@Nonnull List<Point> points, @Nonnull WriteParameters parameters) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writePoints(List, WriteParameters).
points - specifies the Data points to write into bucketparameters - specify InfluxDB Write endpoint parametersInfluxException - if a problem occurred during write time-series data into InfluxDB<M> void writeMeasurement(@Nonnull WritePrecision precision, @Nullable M measurement) throws InfluxException
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeMeasurement(WritePrecision, Object).
M - measurement typeprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurement - specifies the Measurement to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDB<M> void writeMeasurement(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nullable M measurement) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeMeasurement(String, String, WritePrecision, Object).
M - measurement typebucket - specifies the destination bucket for writesorg - specifies the destination organization for writesprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurement - specifies the Measurement to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDB<M> void writeMeasurement(@Nullable M measurement, @Nonnull WriteParameters parameters) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeMeasurement(Object, WriteParameters).
M - measurement typemeasurement - specifies the Measurement to write into bucketparameters - specify InfluxDB Write endpoint parametersInfluxException - if a problem occurred during write time-series data into InfluxDB<M> void writeMeasurements(@Nonnull WritePrecision precision, @Nonnull List<M> measurements) throws InfluxException
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeMeasurements(WritePrecision, List).
M - measurement typeprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurements - specifies the Measurements to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDB<M> void writeMeasurements(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull List<M> measurements) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeMeasurements(String, String, WritePrecision, List).
M - measurement typebucket - specifies the destination bucket for writesorg - specifies the destination organization for writesprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurements - specifies the Measurements to write into bucketInfluxException - if a problem occurred during write time-series data into InfluxDB<M> void writeMeasurements(@Nonnull List<M> measurements, @Nonnull WriteParameters parameters) throws InfluxException
NOTE: This method directly write data info InfluxDB 2.x without batching, jittering and backpressure.
The method blocks the executing thread until their operation finished.
There is also non-blocking alternative WriteApi.writeMeasurements(List, WriteParameters).
M - measurement typemeasurements - specifies the Measurements to write into bucketparameters - specify InfluxDB Write endpoint parametersInfluxException - if a problem occurred during write time-series data into InfluxDBCopyright © 2018–2023 InfluxData, Inc.. All rights reserved.