activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franz1981 <>
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:
    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.


View raw message