Download Queue

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 13:55, 25 June 2005

World Wind has had no common download queue. Quad tile sets have had one queue each, terrain tiles had no queue at all and was blocking the update thread.

See:

[edit] Class diagram

Image:DownloadQueue.png

DownloadQueue is globally accessible and keeps track of active downloads and queued items. It doesn't run on it's own thread but starts downloads on the thread calling the Add/Remove methods, and also on the callback from WebDownload when a download has been completed. When initiating a download the DownloadQueue will loop through all requests and find the one with the highest score and download that.

It would probably be nice to have other factors influcence the decisions too, like perhaps how many downloads are currently in progress from a certain server?

Personal tools