Interface GraphiteSender

    • Method Detail

      • send

        void send​(String name,
                  String value,
                  long timestamp)
           throws IOException
        Sends the given measurement to the server.
        Parameters:
        name - the name of the metric
        value - the value of the metric
        timestamp - the timestamp of the metric
        Throws:
        IOException - if there was an error sending the metric
      • flush

        void flush()
            throws IOException
        Flushes buffer, if applicable
        Throws:
        IOException - if there was an error during flushing metrics to the socket
      • isConnected

        boolean isConnected()
        Returns true if ready to send data
      • getFailures

        int getFailures()
        Returns the number of failed writes to the server.
        Returns:
        the number of failed writes to the server