public class InfluxDB extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
InfluxDB.Builder
Builder for an
InfluxDB instance. |
static class |
InfluxDB.Consistency
InfluxDB data consistency.
|
static class |
InfluxDB.Precision
InfluxDB timestamp precision.
|
static class |
InfluxDB.Protocol
InfluxDB wire protocols.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_SERIALIZED_POINT_SIZE |
Modifier and Type | Method and Description |
---|---|
static InfluxDB.Builder |
builder()
Get an instance of an InfluxDB
InfluxDB.Builder . |
void |
close()
Close the connection to the database.
|
String |
createDatabase(String name) |
void |
write(Point point)
Write a
Point to the database. |
public void write(Point point)
Point
to the database. If the HTTP/S protocol is used, points are buffered
and flushed at the interval specified by the InfluxDB.Builder.autoFlushPeriod
(1 second default).
If the UDP protocol is used, points are not buffered and are written immediately to the
database.point
- the point to write to the databasepublic void close()
close
in interface AutoCloseable
public static InfluxDB.Builder builder()
InfluxDB.Builder
.Copyright © 2018 Brett Wooldridge. All rights reserved.