public void accumulate ( List < ? extends StandardMetricResult > metricValues ) { if ( metricValues == null || metricValues . isEmpty ( ) ) return ; for ( StandardMetricResult v : metricValues ) { if ( lastOffset < v . offset ) values . put ( v . value . intValue ( ) ) ; } lastOffset = ListUtils . last ( metricValues ) . offset ; }
Adds a metric value to the metric value queue .