Concurrency
-
Core Java

Java 8: Definitive guide to CompletableFuture
Java 8 is coming so it’s time to study new features. While Java 7 and Java 6 were rather minor…
Read More » -
Enterprise Java

Synchronising Multithreaded Integration Tests revisited
I recently stumbled upon an articleSynchronising Multithreaded Integration Tests on Captain Debug’s Blog. That post emphasizes the problem of designing…
Read More » -
Core Java

Why a synchronized StringBuffer was never a good idea
Introduction StringBuffer is a synchronized class for mutable strings. The main problem with making it synchronized is that It was…
Read More » -
Core Java

Inadvertent Recursion Protection with Java ThreadLocals
Now here’s a little trick for those of you hacking around with third-party tools, trying to extend them without fully…
Read More » -
Groovy

Detecting Java Threads in Deadlock with Groovy and JMX
Unfortunately, Java applications taking advantage of multiple threads can at times run into the dreaded deadlock condition. Fortunately, the Java…
Read More » -
Enterprise Java

Advanced ListenableFuture capabilities
Last time we familiarized ourselves with ListenableFuture. I promised to introduced more advanced techniques, namely transformations and chaining. Let’s start…
Read More » -
Core Java

My Custom Thread Pool Executor in Java
ThreadPoolExecutor is a feature added by java concurrent api to maintain and reuse threads efficiently , so that our programs…
Read More » -
Core Java

ListenableFuture in Guava
ListenableFuture in Guava is an attempt to define consistent API for Future objects to register completion callbacks. With the ability…
Read More » -
Enterprise Java

Implementing custom Future
Last time we learned the principles behind java.util.concurrent.Future<T>. We also discovered that Future<T> is typically returned by libraries or frameworks.…
Read More »


