Download manager / url fetcher using a threadpool?
<p>My app fetches image resources (thumbnails for user objects presented in a listview). I created a simple download manager class which accepts urls for the images, fetches them using a single thread, then notifies the client imageviews that they're ready.</p>

<p>I'm wondering if there's an already-published manager class that people are using? Ideally it would use ThreadPoolExecutor internally to allow more than one download at a time (right now my implementation just queues up requests for a single internal worker thread).</p>

<p>I'm missing any implementations of this around the web. I'd imagine it would look like:</p>

<pre><code>class DownloadManager {
    DownloadManager(int poolSize);
    void addRequest(String url);
    void addObserver(Observer observer);
}
</code></pre>

<p>Internally it has a thread pool, and calls observer.notify(String downloadedUrl) whenever a resource has been fetched, for any registered observers. I could put this together myself but I'm guessing someone has already done this.</p>

<p>Thank you for any references</p>
