/** * Adds the given count to the given metric. * * @param metric The {@link AbsoluteCountMetric} to add the count. * @param count The count to add to it. */ protected void updateCount(AbsoluteCountMetric metric, long count) { if (metricsEnabled) { metric.add(count); } }
/** * Adds the given count to the given metric. * * @param metric The {@link AbsoluteCountMetric} to add the count. * @param count The count to add to it. */ protected void updateCount(AbsoluteCountMetric metric, long count) { if (metricsEnabled) { metric.add(count); } }