info.magnolia.module.rssaggregator.importhandler
Class FastRSSFeedFetcher
java.lang.Object
info.magnolia.module.rssaggregator.importhandler.FastRSSFeedFetcher
- All Implemented Interfaces:
- RSSFeedFetcher
public class FastRSSFeedFetcher
- extends Object
- implements RSSFeedFetcher
A multithreaded RSSFeedFetcher
for feed retrieval over http
that follows redirects and supports
conditional gets.
Will attempt to fetch all feed channels
defined in the provided aggregate feeds
, processing feeds simultaneously. Failures to fetch a feed
result for a given feed channel are logged at ERROR level.
- Author:
- Rob van der Linden Vooren
- See Also:
RSSFeedFetcher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastRSSFeedFetcher
public FastRSSFeedFetcher()
fetchAggregateFeeds
public Set<AggregateFeed> fetchAggregateFeeds(Set<AggregateFeed> aggregateFeeds)
- Description copied from interface:
RSSFeedFetcher
- Fetch
feeds
for channels
of provided aggregates
.
- Specified by:
fetchAggregateFeeds
in interface RSSFeedFetcher
- Parameters:
aggregateFeeds
- the aggregates to fetch feed content for (must not be null)
- Returns:
- the aggregates holding resulting feed content from the fetch
waitForFutureResult
protected void waitForFutureResult(Future<?> future)
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.