Java 8: New features in ConcurrentHashMap

The java.util.concurrent got a massive overhaul with the release of Java 8. We’ve been introduced to whole new classes like CompletableFuture that brought a long awaited improvement to asynchronous work. We’ve also seen a lot of…

Similar

How to use a Java HashSet by example

What is a HashSet A HashSet is an unordered collection containing unique elements. It has the standard collection operations Add, Remove, Contains, but since it uses a hash-based implementation, these operations are O(1) Learn with a Programming Question ... (more…)

Read more »

Analyzing Java memory usage in a Docker container

A few weeks ago I faced an interesting problem trying to analyze a memory consumption in my Java application (Spring Boot + Infinispan) running under Docker. The Xmx parameter was set to 256m, but the Docker monitoring tool displayed almost two...

Read more »