Here you can find the source of resetExceptionCount()
public static Map<String, Integer> resetExceptionCount()
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; public class Main { private static int singleMax = 0; private static AtomicInteger criticalCount = new AtomicInteger(); private static String singleMaxName = ""; private static Map<String/*exception or method*/, AtomicInteger> exceptionCount = new ConcurrentHashMap<String, AtomicInteger>(); private static Long exceptionTimefrom = System.currentTimeMillis(); public static Map<String, Integer> resetExceptionCount() { Map<String, AtomicInteger> cur = exceptionCount; exceptionCount = new ConcurrentHashMap<String, AtomicInteger>(); criticalCount.set(0);// w w w . j av a 2 s .com exceptionTimefrom = System.currentTimeMillis(); singleMax = 0; singleMaxName = ""; return getCountMap(cur); } private static Map<String, Integer> getCountMap(Map<String, AtomicInteger> countMap) { Map<String, Integer> result = new HashMap<String, Integer>(); for (Map.Entry<String, AtomicInteger> entry : countMap.entrySet()) { result.put(entry.getKey(), entry.getValue().get()); } return result; } }