/** * This is a hack to work around limitations in Jmxutils. */ @Deprecated public void resetTo(CounterStat counterStat) { oneMinute.resetTo(counterStat.getOneMinute()); fiveMinute.resetTo(counterStat.getFiveMinute()); fifteenMinute.resetTo(counterStat.getFifteenMinute()); count.set(counterStat.getTotalCount()); }
/** * This is a hack to work around limitations in Jmxutils. */ @Deprecated public void resetTo(CounterStat counterStat) { oneMinute.resetTo(counterStat.getOneMinute()); fiveMinute.resetTo(counterStat.getFiveMinute()); fifteenMinute.resetTo(counterStat.getFifteenMinute()); count.set(counterStat.getTotalCount()); }