Examples from "Java 7 Concurrency Cookbook" in JRuby