
com.wavefront.integrations.WavefrontConnectionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java client for sending data to Wavefront
package com.wavefront.integrations;
import java.io.Closeable;
import java.io.IOException;
/**
* Wavefront Client that sends data to a Wavefront proxy or Wavefront service.
*
* @author Vikram Raman ([email protected])
*/
public interface WavefrontConnectionHandler extends Closeable {
/**
* Connects to the server.
*
* @throws IllegalStateException if the client is already connected
* @throws IOException if there is an error connecting
*/
void connect() throws IllegalStateException, IOException;
/**
* Flushes buffer, if applicable
*
* @throws IOException
*/
void flush() throws IOException;
/**
* Returns true if ready to send data
*/
boolean isConnected();
/**
* Returns the number of failed writes to the server.
*
* @return the number of failed writes to the server
*/
int getFailureCount();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy