记录上。concurrentMap的使用代码

记录下。。concurrentMap的使用代码private static final ConcurrentHashMap delegatorCache new Concurre

记录下。。concurrentMap的使用代码

private static final ConcurrentHashMap delegatorCache = new ConcurrentHashMap();do {            Object delegator = delegatorCache.get(delegatorName);            if (delegator != null) {                                return delegator;            }            try {                delegator = new Object();            } catch (ClassNotFoundException e) {                Debug.logError(e, module);            }            //Debug.logInfo("putting delegator(" + delegatorName + ") into cache", module);            delegatorCache.putIfAbsent(delegatorName, delegator);        } while (true);