public interface InfluxDbSender extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connects to the server.
|
void |
disconnect()
Disconnects from the server.
|
void |
flush()
Flushes buffer, if applicable
|
boolean |
isConnected()
Returns true if ready to send data
|
void |
send(StringBuilder measurement)
Sends the given measurement to the server.
|
void connect()
throws IllegalStateException,
IOException
IllegalStateException - if the client is already connectedIOException - if there is an error connectingvoid send(StringBuilder measurement) throws IOException
NOTE: The caller may modify the measurement buffer after this call.
The implementation of this method MUST NOT keep any reference to the buffer after this call.
measurement - a single measurement line,
according to the InfluxDb line protocol including a trailing newline.IOException - if there was an error sending the metricvoid flush()
throws IOException
IOException - if there was an error during flushing metrics to the servervoid disconnect()
throws IOException
IOException - if there is an error disconnectingboolean isConnected()
Copyright © 2018. All Rights Reserved.