osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] activemq-artemis pull request #2434: ARTEMIS-1867 FQQN for producers


Github user jbertram commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/2434#discussion_r239494788
  
    --- Diff: artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java ---
    @@ -53,7 +54,13 @@
     
        private final Map<SimpleString, Integer> routingNamePositions = new ConcurrentHashMap<>();
     
    -   private final Map<Long, Binding> bindingsMap = new ConcurrentHashMap<>();
    +   private final Map<Long, Binding> bindingsIdMap = new ConcurrentHashMap<>();
    --- End diff --
    
    What's the advantage of ConcurrentLongHashMap<Binding> over ConcurrentHashMap<Long, Binding>?


---