Fancy Java concurency