public abstract class AbstractExporter extends Object implements Exporter
| Constructor and Description |
|---|
AbstractExporter(Predicate<Keyed> metricsPredicate,
String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doEmit(ContextExportableMetric metric) |
boolean |
emit(ContextExportableMetric 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(ContextExportableMetric metric)
public final boolean emit(ContextExportableMetric exportableMetric)