public class WriteReactiveApiImpl extends AbstractWriteClient implements WriteReactiveApi
AbstractWriteClient.BatchWriteData, AbstractWriteClient.BatchWriteDataMeasurement, AbstractWriteClient.BatchWriteDataPoint, AbstractWriteClient.BatchWriteDataRecordmeasurementMapper, options| 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.
|
addEventListener, flush, write, writepublic void writeRecord(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<String> record)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writeRecord in interface WriteReactiveApiprecision - 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.public void writeRecord(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<String> record)
WriteReactiveApiwriteRecord in interface WriteReactiveApibucket - 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.public void writeRecords(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<String> records)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writeRecords in interface WriteReactiveApiprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)records - specifies the records in InfluxDB Line Protocolpublic void writeRecords(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<String> records)
WriteReactiveApiwriteRecords in interface WriteReactiveApibucket - 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 Protocolpublic void writeRecords(@Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<String> records)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writeRecords in interface WriteReactiveApiprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)records - specifies the records in InfluxDB Line Protocolpublic void writeRecords(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<String> records)
WriteReactiveApiwriteRecords in interface WriteReactiveApibucket - 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 Protocolpublic void writePoint(@Nonnull io.reactivex.Maybe<Point> point)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writePoint in interface WriteReactiveApipoint - specifies the Data point to write into bucketpublic void writePoint(@Nonnull String bucket, @Nonnull String org, @Nonnull io.reactivex.Maybe<Point> point)
WriteReactiveApiwritePoint in interface WriteReactiveApibucket - specifies the destination bucket for writesorg - specifies the destination organization for writespoint - specifies the Data point to write into bucketpublic void writePoints(@Nonnull io.reactivex.Flowable<Point> points)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writePoints in interface WriteReactiveApipoints - specifies the Data points to write into bucketpublic void writePoints(@Nonnull String bucket, @Nonnull String org, @Nonnull io.reactivex.Flowable<Point> points)
WriteReactiveApiwritePoints in interface WriteReactiveApibucket - specifies the destination bucket ID for writesorg - specifies the destination organization ID for writespoints - specifies the Data points to write into bucketpublic void writePoints(@Nonnull org.reactivestreams.Publisher<Point> points)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writePoints in interface WriteReactiveApipoints - specifies the Data points to write into bucketpublic void writePoints(@Nonnull String bucket, @Nonnull String org, @Nonnull org.reactivestreams.Publisher<Point> points)
WriteReactiveApiwritePoints in interface WriteReactiveApibucket - specifies the destination bucket ID for writesorg - specifies the destination organization ID for writespoints - specifies the Data points to write into bucketpublic <M> void writeMeasurement(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<M> measurement)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writeMeasurement in interface WriteReactiveApiM - type of measurementprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurement - specifies the Measurement to write into bucketpublic <M> void writeMeasurement(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Maybe<M> measurement)
WriteReactiveApiwriteMeasurement in interface WriteReactiveApiM - 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 bucketpublic <M> void writeMeasurements(@Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<M> measurements)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writeMeasurements in interface WriteReactiveApiM - type of measurementprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurements - specifies the Measurements to write into bucketpublic <M> void writeMeasurements(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull io.reactivex.Flowable<M> measurements)
WriteReactiveApiwriteMeasurements in interface WriteReactiveApiM - 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 bucketpublic <M> void writeMeasurements(@Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<M> measurements)
WriteReactiveApi
The InfluxDBClientOptions.getBucket() will be use as destination bucket
and InfluxDBClientOptions.getOrg() will be used as destination organization.
writeMeasurements in interface WriteReactiveApiM - type of measurementprecision - specifies the precision for the unix timestamps within the body line-protocol (optional)measurements - specifies the Measurements to write into bucketpublic <M> void writeMeasurements(@Nonnull String bucket, @Nonnull String org, @Nonnull WritePrecision precision, @Nonnull org.reactivestreams.Publisher<M> measurements)
WriteReactiveApiwriteMeasurements in interface WriteReactiveApiM - 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 public <T extends AbstractWriteEvent> io.reactivex.Observable<T> listenEvents(@Nonnull Class<T> eventType)
WriteReactiveApiWriteApi.
The WriteApi produces: WriteSuccessEvent,
BackpressureEvent, WriteErrorEvent and WriteRetriableErrorEvent.
listenEvents in interface WriteReactiveApiT - type of event to listeneventType - type of event to listeneventType eventspublic void close()
WriteReactiveApiclose in interface WriteReactiveApiclose in interface AutoCloseableclose in class AbstractWriteClientCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.