V
- type of the metric value, typically Integer or Long.public abstract class CallbackMetric0<V> extends Object implements CallbackMetric<V>
CallbackMetric0<Long> hits = metricMaker.newCallbackMetric("hits", ...); CallbackMetric0<Long> total = metricMaker.newCallbackMetric("total", ...); metricMaker.newTrigger(hits, total, new Runnable() { public void run() { hits.set(1); total.set(5); } });
Constructor and Description |
---|
CallbackMetric0() |
public abstract void set(V value)
value
- current value.public void prune()
prune
in interface CallbackMetric<V>