Thread safe Hash Map?
You are on the right track using ConcurrentHashMap. For each point: Check out the methods putIfAbsent and replace both are threadsafe and combine checking current state of hashmap and updating it into one atomic operation. The get method is not synchronized internally but will return the most recent value for the specified key available to … Read more