AMQ-7102 - Improve ManagedRegionBroker performance by replacing

registeredMBeans CopyOnWriteSet with a Concurrent hashmap backed set
This commit is contained in:
Christopher L. Shannon (cshannon) 2019-07-31 12:55:24 -04:00
parent 01955dd758
commit 09003e8fef
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class ManagedRegionBroker extends RegionBroker {
private final Map<ObjectName, ProducerView> dynamicDestinationProducers = new ConcurrentHashMap<ObjectName, ProducerView>();
private final Map<SubscriptionKey, ObjectName> subscriptionKeys = new ConcurrentHashMap<SubscriptionKey, ObjectName>();
private final Map<Subscription, ObjectName> subscriptionMap = new ConcurrentHashMap<Subscription, ObjectName>();
private final Set<ObjectName> registeredMBeans = new CopyOnWriteArraySet<ObjectName>();
private final Set<ObjectName> registeredMBeans = new ConcurrentHashMap<>().newKeySet();
/* This is the first broker in the broker interceptor chain. */
private Broker contextBroker;