Class StatisticsCache


  • public class StatisticsCache
    extends java.lang.Object
    This cache is responsible for calculate the change of a metric and keep track of the last values.
    • Constructor Summary

      Constructors 
      Constructor Description
      StatisticsCache()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Number getDifference​(java.lang.String measurementName, java.lang.String fieldName, java.util.Map<java.lang.String,​java.lang.String> tags, java.lang.Number value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatisticsCache

        public StatisticsCache()
    • Method Detail

      • getDifference

        public java.lang.Number getDifference​(java.lang.String measurementName,
                                              java.lang.String fieldName,
                                              java.util.Map<java.lang.String,​java.lang.String> tags,
                                              java.lang.Number value)
        Returns:
        the change of a metric since the last invocation of this method