public abstract class AbstractExporter extends Object implements Exporter
Constructor and Description |
---|
AbstractExporter(Context context) |
AbstractExporter(Context context,
Predicate<Keyed> metricsPredicate) |
Modifier and Type | Method and Description |
---|---|
abstract void |
doEmit(ExportableMetric metric) |
boolean |
emit(ExportableMetric exportableMetric) |
Predicate<Keyed> |
getPredicate() |
void |
reconfigurePredicate(Predicate<Keyed> metricsPredicate)
Reconfigure the metrics predicate.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setMetricsRegistry
close
public AbstractExporter(Context context)
public Predicate<Keyed> getPredicate()
getPredicate
in interface Exporter
public void reconfigurePredicate(Predicate<Keyed> metricsPredicate)
reconfigurePredicate
in interface Exporter
metricsPredicate
- predicate to switch topublic abstract void doEmit(ExportableMetric metric)
public final boolean emit(ExportableMetric exportableMetric)