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

se.l4.vibe.probes.SampledProbe Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package se.l4.vibe.probes;

/**
 * Probe that measures a value that is sampled at certain intervals. A call
 * to a {@link #read()} on a sampled probe should return the last value
 * returned by {@link #sample()}.
 * 
 * @author Andreas Holstenson
 *
 * @param 
 */
public interface SampledProbe
	extends Probe
{
	/**
	 * Check what the current value is.
	 * 
	 * @return
	 */
	T peek();
	
	/**
	 * Sample the current value and optionally reset the probe.
	 * 
	 * @return
	 */
	T sample();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy