public JmxConcurrentMap(final ConcurrentMap<K, V> concurrentMap) throws InstanceAlreadyExistsException, MBeanRegistrationException,
NotCompliantMBeanException, MalformedObjectNameException {
checkNotNull(concurrentMap, "Concurrent map must NOT be null in order to be JMX-decorated.");
this.map = concurrentMap;
final Builder builder = new Builder(this);
this.objectName = new ObjectName(builder.objectName());
MBeans.register(builder);
}
public JmxConcurrentMap(final ConcurrentMap<K, V> concurrentMap, final Builder builder) throws InstanceAlreadyExistsException, MBeanRegistrationException,
NotCompliantMBeanException, MalformedObjectNameException {