public class PointFactory extends Object
Point
instances to be persisted by
calling InfluxDB.write(Point)
.Modifier and Type | Class and Description |
---|---|
static class |
PointFactory.Builder
Builder for a
PointFactory instance. |
Modifier and Type | Method and Description |
---|---|
static PointFactory.Builder |
builder()
Obtain a new
PointFactory.Builder instance to configure and create
a PointFactory . |
Point |
createPoint(String measurement)
Create a
Point with the specified measurement name. |
void |
flush()
Flush all
Point instances from the internal pool. |
public static PointFactory.Builder builder()
PointFactory.Builder
instance to configure and create
a PointFactory
.PointFactory.Builder
instancepublic Point createPoint(String measurement)
Point
with the specified measurement
name.
This method is thread-safe and may safely be called by multiple threads concurrently.
measurement
- the measurement namePoint
instance, likely obtained from the internal poolpublic void flush()
Point
instances from the internal pool. Use of this method
is not generally necessary nor recommended due to the impact on performance
as well as garbage generation side-effect.
This method is thread-safe and may safely be called by multiple threads or
while other threads are calling createPoint(String)
.
Copyright © 2019 Brett Wooldridge. All rights reserved.