You could use a CountDownLatch(1) instead.