Code example for BlockingQueue

Methods: offer

0
		}).start();
	} 
 
	public void execute(int imageId, ImageView view) {
		IdView idView = new IdView(imageId, view);
		queue.offer(idView);
	} 
 
	public Bitmap getCache(int imgId) {
		Bitmap bm = null;
		try { 
			rLock.lock();
			bm = imgCache.get(imgId);
		} finally { 
			rLock.unlock();
		} 
		return bm;
	} 
 
}