Posts in guava

Keep Trying With Guava Retrying

We were having a [race condition][1] on a server which was “fixed” by adding an sleep to the thread to check again later. Yes, it sucked, so I decided to make something more sophisticated and went looking for a library to handle retries with multiple strategies. That’s when I first read about [Guava Retrying][2].

written in guava, java, libs Read on →

Guava - Fun With Comparisons

Implementing compare() and compareTo() methods was never fun. Luckily [Guava] provides an utility that makes comparison methods easier to write and more pleasing to the eye.

written in guava, java, libs Read on →