Code example for CountDownLatch

Methods: getCount

0
			throws InterruptedException { 
		return event.await(timeout, unit);
	} 
 
	public boolean isSignalled() { 
		return event.getCount() == 0;
	} 
}