@ThreadSafe public interface WriteReactiveApi extends AutoCloseable
The data are formatted in Line Protocol.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close threads for asynchronous batch writing.
|
<T extends AbstractWriteEvent> |
listenEvents(Class<T> eventType)
Listen the events produced by
WriteApi. |
<M> void |
writeMeasurement(String bucket,
String org,
WritePrecision precision,
io.reactivex.Maybe<M> measurement)
Write Measurement into specified bucket.
|
<M> void |
writeMeasurement(WritePrecision precision,
io.reactivex.Maybe<M> measurement)
Write Measurement into specified bucket.
|
<M> void |
writeMeasurements(String bucket,
String org,
WritePrecision precision,
io.reactivex.Flowable<M> measurements)
Write Measurements into specified bucket.
|
<M> void |
writeMeasurements(String bucket,
String org,
WritePrecision precision,
org.reactivestreams.Publisher<M> measurements)
Write Measurements into specified bucket.
|
<M> void |
writeMeasurements(WritePrecision precision,
io.reactivex.Flowable<M> measurements)
Write Measurements into specified bucket.
|
<M> void |
writeMeasurements(WritePrecision precision,
org.reactivestreams.Publisher<M> measurements)
Write Measurements into specified bucket.
|
void |
writePoint(io.reactivex.Maybe<Point> point)
Write Data point into specified bucket.
|
void |
writePoint(String bucket,
String org,
io.reactivex.Maybe<Point> point)
Write Data point into specified bucket.
|
void |
writePoints(io.reactivex.Flowable<Point> points)
Write Data points into specified bucket.
|
void |
writePoints(org.reactivestreams.Publisher<Point> points)
Write Data points into specified bucket.
|
void |
writePoints(String bucket,
String org,
io.reactivex.Flowable<Point> points)
Write Data points into specified bucket.
|
void |
writePoints(String bucket,
String org,
org.reactivestreams.Publisher<Point> points)
Write Data points into specified bucket.
|
void |
writeRecord(String bucket,
String org,
WritePrecision precision,
io.reactivex.Maybe<String> record)
Write Line Protocol record into specified bucket.
|
void |
writeRecord(WritePrecision precision,
io.reactivex.Maybe<String> record)
Write Line Protocol record into specified bucket.
|
void |
writeRecords(String bucket,
String org,
WritePrecision precision,
io.reactivex.Flowable<String> records)
Write Line Protocol records into specified bucket.
|
void |
writeRecords(String bucket,
String org,
WritePrecision precision,
org.reactivestreams.Publisher<String> records)
Write Line Protocol records into specified bucket.
|
void |
writeRecords(WritePrecision precision,
io.reactivex.Flowable<String> records)
Write Line Protocol records into specified bucket.
|
void |
writeRecords(WritePrecision precision,
org.reactivestreams.Publisher<String> records)
Write Line Protocol records into specified bucket.
|
void writeRecord(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<String> record)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
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.void writeRecord(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<String> record)
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.void writeRecords(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<String> records)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
precision - specifies the precision for the unix timestamps within the body line-protocol (optional)records - specifies the records in InfluxDB Line Protocolvoid writeRecords(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<String> records)
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 Protocolvoid writeRecords(@Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<String> records)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
precision - specifies the precision for the unix timestamps within the body line-protocol (optional)records - specifies the records in InfluxDB Line Protocolvoid writeRecords(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<String> records)
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 Protocolvoid writePoint(@Nonnull io.reactivex.Maybe<Point> point)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
point - specifies the Data point to write into bucketvoid writePoint(@Nonnull String bucket, @Nonnull String org, @Nonnull io.reactivex.Maybe<Point> point)
bucket - specifies the destination bucket for writesorg - specifies the destination organization for writespoint - specifies the Data point to write into bucketvoid writePoints(@Nonnull io.reactivex.Flowable<Point> points)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
points - specifies the Data points to write into bucketvoid writePoints(@Nonnull String bucket, @Nonnull String org, @Nonnull io.reactivex.Flowable<Point> points)
bucket - specifies the destination bucket ID for writesorg - specifies the destination organization ID for writespoints - specifies the Data points to write into bucketvoid writePoints(@Nonnull org.reactivestreams.Publisher<Point> points)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
points - specifies the Data points to write into bucketvoid writePoints(@Nonnull String bucket, @Nonnull String org, @Nonnull org.reactivestreams.Publisher<Point> points)
bucket - specifies the destination bucket ID for writesorg - specifies the destination organization ID for writespoints - specifies the Data points to write into bucket<M> void writeMeasurement(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<M> measurement)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
M - type of measurementprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurement - specifies the Measurement to write into bucket<M> void writeMeasurement(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<M> measurement)
M - type of measurementbucket - 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 bucket<M> void writeMeasurements(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<M> measurements)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
M - type of measurementprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurements - specifies the Measurements to write into bucket<M> void writeMeasurements(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<M> measurements)
M - type of measurementbucket - 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 bucket<M> void writeMeasurements(@Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<M> measurements)
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
M - type of measurementprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurements - specifies the Measurements to write into bucket<M> void writeMeasurements(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<M> measurements)
M - type of measurementbucket - 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 bucket@Nonnull <T extends AbstractWriteEvent> io.reactivex.Observable<T> listenEvents(@Nonnull Class<T> eventType)
WriteApi.
The WriteApi produces: WriteSuccessEvent,
BackpressureEvent, WriteErrorEvent and WriteRetriableErrorEvent.
T - type of event to listeneventType - type of event to listeneventType eventsvoid close()
close in interface AutoCloseableCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.