Skip to content

Commit

Permalink
Add Javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Sep 5, 2024
1 parent 77a0645 commit 875f389
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
import java.util.concurrent.TimeUnit;
import java.util.function.Function;

/**
* This class ensures that {@link Map#computeIfAbsent(Object, Function)} is called only once for the same key. It has inner blocking timeout
* of 1 minute to wait for the value to be computed.
*
* @param <K> a key type for the map
* @param <V> a value type to store
*/
public class BlockingConcurrentHashMap<K, V> {
private static final Logger LOGGER = LoggerFactory.getLogger(BlockingConcurrentHashMap.class);

Expand Down

0 comments on commit 875f389

Please sign in to comment.