Code example for TimeUnit

Methods: convert

0
 
		@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; 
		} 
 
		@Override 
		public boolean isDone() { 
			return complete;
		} 
 
		public String getAsString() {				
			try {