Code example for ExecutorService

Methods: isShutdown

0
		} 
	} 
 
	public static NetPool getInstance() 
	{ 
	    if (null==instance||(null!=instance&&instance.netTaskHandlerExecutorService.isShutdown())) 
	    { 
	        instance = new NetPool();
	    } 
	    return instance;
	} 
	 
	 public static void destory() 
	 { 
		 if(null!=instance)
		 { 
			 instance.cancelAllMsg();
			 if(!instance.netTaskHandlerExecutorService.isShutdown())
			 { 
				 instance.netTaskHandlerExecutorService.shutdown();
			 }