class InfluxDbUdpSender extends InfluxDbBaseSender {

    @Override
    protected int writeData(byte[] line) throws Exception {
        createSocket();

        udpSocket.send(new DatagramPacket(line, line.length, InetAddress.getByName(hostname), port));

        return 0;
    }

    public  InfluxDbUdpSender(
        String hostname,
        int port,
        int socketTimeout,
        String database,
        String measurementPrefix);

}