com.codahale.metrics.Gauge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package com.codahale.metrics;
/**
* A gauge metric is an instantaneous reading of a particular value. To instrument a queue's depth,
* for example:
*
* final Queue<String> queue = new ConcurrentLinkedQueue<String>();
* final Gauge<Integer> queueDepth = new Gauge<Integer>() {
* public Integer getValue() {
* return queue.size();
* }
* };
*
*
* @param the type of the metric's value
*/
@FunctionalInterface
public interface Gauge extends Metric {
/**
* Returns the metric's current value.
*
* @return the metric's current value
*/
T getValue();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy