activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franz1981 <...@git.apache.org>
Subject [GitHub] activemq-artemis issue #2011: ARTEMIS-1740: Add support for regex based cert...
Date Thu, 12 Apr 2018 09:35:16 GMT
Github user franz1981 commented on the issue:

    https://github.com/apache/activemq-artemis/pull/2011
  
    @LionelCons 
    
    And it makes sense, but there are parts like:
    `String name = usersByDn.get(dn);`
    that are not synchronized, hence it won't be thread-safe.
    My advice is to use a lazy initialization using a `Suppliers::memoize` or similar construct
and always use `Supplier::get` to access the variable: that would allow to have always a thread-safe
access to an unmodifiable resource, lazy initialized.



---

Mime
View raw message