Core Java
-
SynchronousQueue Example in Java – Producer Consumer Solution
SynchronousQueue is special kind of BlockingQueue in which each insert operation must wait for a corresponding remove operation by another…
Read More » -
Out of memory: Kill process or sacrifice child
It is 6 AM. I am awake summarizing the sequence of events leading to my way-too-early wake up call. As…
Read More » -
Beauty and strangeness of generics
Recently, I was preparing for my Oracle Certified Professional, Java SE 7 Programmer exam and I happened to encounter some rather…
Read More » -
Listing and filtering directory contents in NIO.2
There hasn’t been much happening in the area of listing directory contents until the release of Java 7. But since…
Read More » -
Java 8 Optional: How to Use it
Java 8 comes with a new Optional type, similar to what is available in other languages. This post will go…
Read More » -
Java 8 Friday: Most Internal DSLs are Outdated
At Data Geekery, we love Java. And as we’re really into jOOQ’s fluent API and query DSL, we’re absolutely thrilled…
Read More » -
Simplifying trading system with Akka
My colleagues are developing a trading system that processes quite heavy stream of incoming transactions. Each transaction covers one Instrument…
Read More » -
Java 8 StampedLocks vs. ReadWriteLocks and Synchronized
Synchronized sections are kind of like visiting your parents-in-law. You want to be there as little as possible. When it…
Read More »