-
- All Implemented Interfaces:
-
kotlin.collections.Iterable
public final class MultiSourceHyperlinkIterable implements Iterable<UrlAware>
-
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentLoadingIterable<UrlAware>loadingIterableprivate final IntegercacheSizeprivate final Collection<PriorityDataCollector<UrlAware>>openCollectorsprivate final List<PriorityDataCollector<UrlAware>>collectorsprivate final Stringabstractprivate final Stringreportprivate final FetchCacheManagerfetchCachesprivate final IntegerlowerCacheSizeprivate final BooleanenableDefaults
-
Constructor Summary
Constructors Constructor Description MultiSourceHyperlinkIterable(FetchCacheManager fetchCaches, Integer lowerCacheSize, Boolean enableDefaults)
-
Method Summary
-
-
Constructor Detail
-
MultiSourceHyperlinkIterable
MultiSourceHyperlinkIterable(FetchCacheManager fetchCaches, Integer lowerCacheSize, Boolean enableDefaults)
-
-
Method Detail
-
getLoadingIterable
final ConcurrentLoadingIterable<UrlAware> getLoadingIterable()
-
getCacheSize
final Integer getCacheSize()
-
getOpenCollectors
final Collection<PriorityDataCollector<UrlAware>> getOpenCollectors()
-
getCollectors
final List<PriorityDataCollector<UrlAware>> getCollectors()
-
getAbstract
final String getAbstract()
-
getFetchCaches
final FetchCacheManager getFetchCaches()
-
getLowerCacheSize
final Integer getLowerCacheSize()
-
getEnableDefaults
final Boolean getEnableDefaults()
-
addFirst
final Unit addFirst(UrlAware url)
Add a hyperlink to the very beginning of the fetch queue, so it will be served immediately
-
estimatedOrder
final Integer estimatedOrder(Integer priority)
Estimate the order to fetch for the next task to add with priority priority
-
addDefaultCollectors
final MultiSourceHyperlinkIterable addDefaultCollectors()
-
addCollector
final MultiSourceHyperlinkIterable addCollector(PriorityDataCollector<UrlAware> collector)
-
addCollectors
final MultiSourceHyperlinkIterable addCollectors(Iterable<PriorityDataCollector<UrlAware>> collectors)
-
getCollectors
final List<PriorityDataCollector<UrlAware>> getCollectors(String name)
-
getCollectors
final List<PriorityDataCollector<UrlAware>> getCollectors(Iterable<String> names)
-
getCollectors
final List<PriorityDataCollector<UrlAware>> getCollectors(Regex regex)
-
getCollectorsLike
final List<PriorityDataCollector<UrlAware>> getCollectorsLike(String name)
-
remove
final Boolean remove(DataCollector<UrlAware> collector)
-
removeAll
final Boolean removeAll(Collection<DataCollector<UrlAware>> collectors)
-
-
-
-