Java threading wrapper library