public class InfluxDbTcpWriter extends Object implements InfluxDbWriter
InfluxDbWriter that writes bytes to TCP sockets.| Modifier and Type | Class and Description |
|---|---|
static class |
InfluxDbTcpWriter.Factory
A factory for
InfluxDbTcpWriter. |
| Constructor and Description |
|---|
InfluxDbTcpWriter(String host,
int port,
io.dropwizard.util.Duration timeout) |
| 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 InfluxDbTcpWriter(String host, int port, io.dropwizard.util.Duration timeout)
public void writeBytes(byte[] bytes)
throws IOException
InfluxDbWriterwriteBytes in interface InfluxDbWriterIOExceptionpublic void close()
throws IOException
InfluxDbWriterclose in interface InfluxDbWriterIOException - if an I/O error occurs when closing the connection.Copyright © 2017. All rights reserved.