com.twitter.common.metrics
Interface MetricListener


public interface MetricListener

A listener that receives updated metric samples.


Method Summary
 void updateStats(Map<String,Number> samples)
          Notifies the listener of updated samples.
 

Method Detail

updateStats

void updateStats(Map<String,Number> samples)
Notifies the listener of updated samples.

Parameters:
samples - Updated samples. Samples associated with the same metric will use a consistent key, and keys may be added or removed over the lifetime of the listener.