Javadoc
A replacement for
javax.management.NotificationFilterSupportthat avoids synchronization when reading the enabled notification types
by using copy-on-write semantics.
Reading operation operate on the latest snapshot of the enabledTypes.
Mutating operations synchronize on 'this', only because of the
addIfAbsent logic in enableType(). This could be avoided by
using java.util.concurrent or EDU.oswego.cs.dl.util.concurrent
directly, rather than org.jboss.util.CollectionsFactory.
In any case, mutating operations are rare when dealing with
NotificationFilters. The common usage is to configure it once and
be done with it.