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

com.codahale.metrics.Gauge Maven / Gradle / Ivy

Go to download

Metrics is a Java library which gives you unparalleled insight into what your code does in production. Metrics provides a powerful toolkit of ways to measure the behavior of critical components in your production environment.

There is a newer version: 3.0.2
Show newest version
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 value() {
 *         return queue.size();
 *     }
 * };
 * 
* * @param the type of the metric's value */ public interface Gauge extends Metric { /** * Returns the metric's current value. * * @return the metric's current value */ T getValue(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy