| java.lang.Object org.clapper.curn.FeedDownloadThread
Constructor Summary | |
| FeedDownloadThread(RSSParser parser, FeedCache feedCache, CurnConfig configFile, Queue<FeedInfo> feedQueue, FeedDownloadDoneHandler feedDoneHandler) Create a new FeedDownloadThread object to download feeds.
Parameters: parser - the RSS parser to use Parameters: feedCache - the feed cache to save cache data to Parameters: configFile - the parsed configuration file Parameters: feedQueue - list of feeds to be processed. |
FeedDownloadThread | FeedDownloadThread(RSSParser parser, FeedCache feedCache, CurnConfig configFile, Queue<FeedInfo> feedQueue, FeedDownloadDoneHandler feedDoneHandler)(Code) | | Create a new FeedDownloadThread object to download feeds.
Parameters: parser - the RSS parser to use Parameters: feedCache - the feed cache to save cache data to Parameters: configFile - the parsed configuration file Parameters: feedQueue - list of feeds to be processed. The list isassumed to be shared across multiple threads,and must be thread safe. Parameters: feedDoneHandler - called when afeed is finished downloading |
getParsedChannelData | RSSChannel getParsedChannelData()(Code) | | Get the parsed channel data.
the channel data |
run | public void run()(Code) | | Run the thread. Pulls the next FeedInfo object from the
feed queue (the list passed to the constructor) and processes it.
The thread stops running when it has finished downloading a feed and
it finds that the feed queue is empty.
|
|
|