import java.net.URI;
import java.util.Collection;
-import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
public class MqttChannelTypeProvider implements ThingTypeProvider, ChannelGroupTypeProvider, ChannelTypeProvider {
private final ThingTypeRegistry typeRegistry;
- private final Map<ChannelTypeUID, ChannelType> types = new HashMap<>();
- private final Map<ChannelGroupTypeUID, ChannelGroupType> groups = new HashMap<>();
- private final Map<ThingTypeUID, ThingType> things = new HashMap<>();
+ private final Map<ChannelTypeUID, ChannelType> types = new ConcurrentHashMap<>();
+ private final Map<ChannelGroupTypeUID, ChannelGroupType> groups = new ConcurrentHashMap<>();
+ private final Map<ThingTypeUID, ThingType> things = new ConcurrentHashMap<>();
@Activate
public MqttChannelTypeProvider(@Reference ThingTypeRegistry typeRegistry) {