This content has been marked as final.
Show 1 reply
-
1. Re: JBAS-2989 - DRM and iterator
adrian.brock Mar 22, 2006 7:51 AM (in response to adrian.brock)Similarly, why does JBossCacheManager clone the concurrent map,
get an entry set and then only use the key?protected void clearSessions() ... // Next, the local copy of the distributed cache Map unloaded = new HashMap(unloadedSessions_); Set entries = unloaded.entrySet(); for (Iterator it = entries.iterator(); it.hasNext(); ) { Map.Entry entry = (Map.Entry) it.next(); String realId = (String) entry.getKey(); proxy_.removeSessionLocal(realId); unloadedSessions_.remove(realId); }