Back to project page SIC.
The source code is released under:
MIT License
If you think the Android project SIC listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sun.imageloader.core; // w w w .jav a2 s . c o m import java.util.concurrent.ThreadPoolExecutor; public class UrlImageTaskExecutor { UrlImageLoaderConfiguration _UrlImageLoaderConfig; private ThreadPoolExecutor _imageLoadExecutor; /** * Task executor used to run {@link Thread} to retrieve and load images * * @param configuration_ * containing a reference to a {@link ThreadPoolExecutor} used to execute {@link Runnable} for retreive and loading images */ public UrlImageTaskExecutor(UrlImageLoaderConfiguration configuration_) { _imageLoadExecutor = configuration_._threadPoolForTaskExecutor; _imageLoadExecutor.allowCoreThreadTimeOut(true); } public void sumbitTask(Runnable task_){ _imageLoadExecutor.execute(task_); } }