F1
- type of the field.V
- type of the metric value, typically Integer or Long.public abstract class CallbackMetric1<F1,V> extends Object implements CallbackMetric<V>
Constructor and Description |
---|
CallbackMetric1() |
Modifier and Type | Method and Description |
---|---|
abstract void |
forceCreate(F1 field1)
Ensure a zeroed metric is created for the field value.
|
void |
prune()
Prune any submetrics that were not assigned during this trigger.
|
abstract void |
set(F1 field1,
V value)
Supply the current value of the metric.
|
public abstract void set(F1 field1, V value)
field1
- bucket to increment.value
- current value.public abstract void forceCreate(F1 field1)
field1
- bucket to create.public void prune()
prune
in interface CallbackMetric<V>