Code example for ConditionVariable

Methods: block

0
			return false; 
		} 
 
		@Override 
		public Object get() throws InterruptedException, ExecutionException {
			eventHandled.block();
			return asMap(); 
		} 
 
		@Override 
		public Object get(long timeout, TimeUnit unit)
				throws InterruptedException, ExecutionException, 
				TimeoutException { 
			eventHandled.block(unit.convert(timeout, TimeUnit.MILLISECONDS));
			return asMap(); 
		} 
 
		@Override 
		public boolean isCancelled() { 
			return false; 
		}