Skip to content

Commit

Permalink
[Fix #3605] Use concurrent hash map (#3606)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Aug 7, 2024
1 parent 4611a75 commit 23c3426
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package org.kie.kogito.monitoring.core.common.process;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;

Expand Down Expand Up @@ -49,7 +49,7 @@
public class MetricsProcessEventListener extends DefaultKogitoProcessEventListener {

private static final Logger LOGGER = LoggerFactory.getLogger(MetricsProcessEventListener.class);
private static Map<String, AtomicInteger> gaugeMap = new HashMap<>();
private static Map<String, AtomicInteger> gaugeMap = new ConcurrentHashMap<>();
private final String identifier;
private final KogitoGAV gav;
private final MeterRegistry meterRegistry;
Expand Down

0 comments on commit 23c3426

Please sign in to comment.