Code example for ThreadPoolExecutor

Methods: isShutdown

0
	 * 关闭线程池 
	 *  
	 */ 
	public void stop() { 
		if (isStart()) { 
			ExecutorUtil.shutdownAndAwaitTermination(threadPool);
		} 
		threadPool = null;
	} 
 
	/** 
	 * 判断是否打开线程池 
	 *  
	 * @return 
	 */ 
	public boolean isStart() { 
		if (threadPool != null && !threadPool.isShutdown()) {
			return true; 
		} 
		return false; 
	}