public abstract class AbstractExporter extends Object implements Exporter
Constructor and Description |
---|
AbstractExporter() |
AbstractExporter(Predicate<Keyed> metricsPredicate) |
Modifier and Type | Method and Description |
---|---|
abstract void |
doEmit(SerializedMetric metric) |
boolean |
emit(SerializedMetric metric) |
Predicate<Keyed> |
getPredicate() |
void |
reconfigurePredicate(Predicate<Keyed> metricsPredicate)
Reconfigure the metrics predicate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setMetricsRegistry
close
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(SerializedMetric metric)
public final boolean emit(SerializedMetric metric)