public abstract class AbstractExporter extends Object implements Exporter
| Constructor and Description |
|---|
AbstractExporter(Context context,
Predicate<Keyed> metricsPredicate,
String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doEmit(ExportableMetric metric) |
boolean |
emit(ExportableMetric exportableMetric) |
String |
getName() |
Predicate<Keyed> |
getPredicate() |
void |
reconfigurePredicate(Predicate<Keyed> metricsPredicate)
Reconfigure the metrics predicate.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetMetricsRegistryclosepublic 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)