Skip to content

Commit

Permalink
Switch to ConcurrentHashMap in case user has multiple requests going …
Browse files Browse the repository at this point in the history
…at the same time
  • Loading branch information
ryanrdoherty committed Feb 24, 2024
1 parent cc2fe2c commit 6c7777a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.gusdb.wdk.cache;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
Expand All @@ -25,7 +25,7 @@ public class TemporaryUserDataStore {

private static final Logger LOG = Logger.getLogger(TemporaryUserDataStore.class);

public static class TemporaryUserData extends HashMap<String,Object> {
public static class TemporaryUserData extends ConcurrentHashMap<String,Object> {

private final TemporaryUserDataStore _parent;
private final Long _owner;
Expand Down

0 comments on commit 6c7777a

Please sign in to comment.