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, waitsetMetricsRegistryclosepublic AbstractExporter(Context context)
public Predicate<Keyed> getPredicate()
getPredicate in interface Exporterpublic void reconfigurePredicate(Predicate<Keyed> metricsPredicate)
reconfigurePredicate in interface ExportermetricsPredicate - predicate to switch topublic abstract void doEmit(ExportableMetric metric)
public final boolean emit(ExportableMetric exportableMetric)