T
- the type of the metric's valuepublic abstract class Gauge<T> extends Metric
final Queue<String> queue = new ConcurrentLinkedQueue<String>();
final Gauge<Integer> queueDepth = new Gauge<Integer>() {
public Integer getValue() {
return queue.size();
}
};
Constructor and Description |
---|
Gauge() |
Modifier and Type | Method and Description |
---|---|
protected double |
calculatePercent(long value,
long total) |
abstract T |
getValue()
Returns the metric's current value.
|
protected static Double |
validate(Double value) |
Copyright © GigaSpaces.