AMQ-5748 - replace Map with ConcurrentMap for JDK7

This commit is contained in:
Christopher L. Shannon (cshannon) 2015-08-07 17:54:35 +00:00
parent de24980a62
commit b52796f794
1 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ import java.util.SortedSet;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.locks.ReentrantReadWriteLock;
@ -2281,7 +2282,7 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
* This is a map to cache DestinationStatistics for a specific
* KahaDestination key
*/
protected final Map<String, MessageStore> storeCache =
protected final ConcurrentMap<String, MessageStore> storeCache =
new ConcurrentHashMap<String, MessageStore>();
/**