mirror of https://github.com/apache/activemq.git
AMQ-7102 - Improve ManagedRegionBroker performance by replacing
registeredMBeans CopyOnWriteSet with a Concurrent hashmap backed set
This commit is contained in:
parent
01955dd758
commit
09003e8fef
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue