All Downloads are FREE. Search and download functionalities are using the official Maven repository.

metrics_influxdb.measurements.Sender Maven / Gradle / Ivy

The newest version!
package metrics_influxdb.measurements;

import java.io.Closeable;
import java.util.Collection;

public interface Sender extends Closeable {
	/**
	 * Flushes measurements still held and forces them to be sent.
	 */
	public void flush();
	/**
	 * Send the given {@link Measure}.
	 * Depending on the implementation, the {@link Sender} is allowed to enqueue the real sending action. 
	 * @param m the Measure to be sent, if null this method is a NOOP
	 */
	public void send(Measure m);
	/**
	 * Send the given Measures.
	 * Depending on the implementation, the {@link Sender} is allowed to enqueue the real sending action. 
	 * @param measures the Measures to be sent, if null this method is a NOOP
	 */
	public void send(Collection measures);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy