Package org.influxdb.impl
Class BatchProcessor
java.lang.Object
org.influxdb.impl.BatchProcessor
public final class BatchProcessor extends Object
A BatchProcessor can be attached to a InfluxDB Instance to collect single point writes and
aggregates them to BatchPoints to get a better write performance.
- Author:
- stefan.majer [at] gmail.com
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchProcessor.Builder
The Builder to create a BatchProcessor instance. -
Field Summary
Fields Modifier and Type Field Description protected BlockingQueue<org.influxdb.impl.BatchProcessor.AbstractBatchEntry>
queue
-
Method Summary
Modifier and Type Method Description static BatchProcessor.Builder
builder(InfluxDB influxDB)
Static method to create the Builder for this BatchProcessor.InfluxDB.ConsistencyLevel
getConsistencyLevel()
Consumer<Point>
getDroppedActionHandler()
TimeUnit
getPrecision()
boolean
isDropActionsOnQueueExhaustion()
-
Field Details
-
Method Details
-
builder
Static method to create the Builder for this BatchProcessor.- Parameters:
influxDB
- the influxdb database handle.- Returns:
- the Builder to create the BatchProcessor.
-
getConsistencyLevel
-
getPrecision
-
isDropActionsOnQueueExhaustion
public boolean isDropActionsOnQueueExhaustion() -
getDroppedActionHandler
-