Code example for ExecutorService

Methods: isShutdown, shutdown

0
	 */ 
	public void cancel() { 
 
		// We could also terminate it immediately, 
		// but that may lead to synchronization issues. 
		if (!mExecutor.isShutdown()) {
			mExecutor.shutdown();
		} 
 
		stopPurgeTimer(); 
 
		clearMemoryCache(); 
	} 
 
	public void clearFileCache() { 
		mFileCache.clear();
	} 
 
	public void clearMemoryCache() { 
		mMemoryCache.clear();
		mBlacklist.clear();