Code example for ExecutorService

Methods: awaitTermination, shutdown

0
		Extractor service_info_extractor = new ServiceInfoExtractor("ServiceInfo");
		extractors.add(service_info_extractor);
	} 
	 
	private void terminate() { 
		executor.shutdown();
		try { 
			executor.awaitTermination(24, TimeUnit.SECONDS);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
	} 
	 
	private void extract() { 
		for (final Extractor extractor : extractors) {
			executor.submit(new Runnable(){
				@Override 
				public void run() { 
					// TODO Auto-generated method stub 
					if (format_helper_pool.get() == null) {