Code example for BlockingQueue

Methods: sizeadd

0
		 
		/*if (mDownloadTasks.size() > 5) { 
			mDownloadTasks.remove(); 
		}*/ 
		 
		mDownloadTasks.add(task);
		 
		Log.v(TAG, mDownloadTasks.size() + " in download queue");
	} 
	 
	public void destroy() { 
		mActive = false;
		 
		mImageManagerTask.interrupt();
	} 
	 
	private final class ImageManagerThread extends Thread {
 
		private final String mCacheDir;
		 
		public ImageManagerThread(final String cacheDir) {