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() |
Modifier and Type | Method and Description |
---|---|
void |
prune() |
abstract void |
set(V value)
Supply the current value of the metric.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
public abstract void set(V value)
value
- current value.public void prune()
prune
in interface CallbackMetric<V>