Class HistoIntervalLogger

  • All Implemented Interfaces:
    com.codahale.metrics.MetricRegistryListener, MetricsCloseable, java.lang.Runnable, java.util.EventListener

    public class HistoIntervalLogger
    extends CapabilityHook<HdrDeltaHistogramAttachment>
    implements java.lang.Runnable, MetricsCloseable
    HistoIntervalLogger runs a separate thread to snapshotAndWrite encoded histograms on a regular interval. It listens to the metrics registry for any new metrics that match the pattern. Any metrics which both match the pattern and which are EncodableHistograms are written the configured logfile at the configured interval.