public class InfluxDbHttpWriter extends Object implements InfluxDbWriter
InfluxDbWriter that writes to an HTTP/S server using a Client.| Modifier and Type | Class and Description |
|---|---|
static class |
InfluxDbHttpWriter.Factory
A factory for
InfluxDbHttpWriter. |
| Constructor and Description |
|---|
InfluxDbHttpWriter(javax.ws.rs.client.Client client,
String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the writer connection, if it is open.
|
void |
writeBytes(byte[] bytes)
Write the given bytes to the connection.
|
public InfluxDbHttpWriter(javax.ws.rs.client.Client client,
String endpoint)
public void writeBytes(byte[] bytes)
InfluxDbWriterwriteBytes in interface InfluxDbWriterpublic void close()
throws IOException
InfluxDbWriterclose in interface InfluxDbWriterIOException - if an I/O error occurs when closing the connection.Copyright © 2017. All rights reserved.