-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.UrlPool
public abstract class AbstractUrlPool implements UrlPool
The abstract fetch pool
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegertotalItemsprivate final UrlCachelowestCacheprivate final UrlCachelower5Cacheprivate final UrlCachelower4Cacheprivate final UrlCachelower3Cacheprivate final UrlCachelower2Cacheprivate final UrlCachelowerCacheprivate final UrlCachenormalCacheprivate final UrlCachehigherCacheprivate final UrlCachehigher2Cacheprivate final UrlCachehigher3Cacheprivate final UrlCachehigher4Cacheprivate final UrlCachehigher5Cacheprivate final UrlCachehighestCacheprivate final ImmutableConfigconfprivate final UrlCacherealTimeCacheprivate final Queue<DelayUrl>delayCacheprivate final Map<Integer, UrlCache>orderedCachesprivate final List<UrlCache>unorderedCaches
-
Constructor Summary
Constructors Constructor Description AbstractUrlPool(ImmutableConfig conf)
-
Method Summary
-
-
Constructor Detail
-
AbstractUrlPool
AbstractUrlPool(ImmutableConfig conf)
-
-
Method Detail
-
getTotalItems
Integer getTotalItems()
-
getLowestCache
UrlCache getLowestCache()
-
getLower5Cache
UrlCache getLower5Cache()
-
getLower4Cache
UrlCache getLower4Cache()
-
getLower3Cache
UrlCache getLower3Cache()
-
getLower2Cache
UrlCache getLower2Cache()
-
getLowerCache
UrlCache getLowerCache()
-
getNormalCache
UrlCache getNormalCache()
-
getHigherCache
UrlCache getHigherCache()
-
getHigher2Cache
UrlCache getHigher2Cache()
-
getHigher3Cache
UrlCache getHigher3Cache()
-
getHigher4Cache
UrlCache getHigher4Cache()
-
getHigher5Cache
UrlCache getHigher5Cache()
-
getHighestCache
UrlCache getHighestCache()
-
getConf
final ImmutableConfig getConf()
-
getRealTimeCache
abstract UrlCache getRealTimeCache()
The real time fetch cache, real time tasks have the highest priority
-
getDelayCache
abstract Queue<DelayUrl> getDelayCache()
The delayed fetch cache
-
getOrderedCaches
abstract Map<Integer, UrlCache> getOrderedCaches()
The ordered fetch caches
-
getUnorderedCaches
abstract List<UrlCache> getUnorderedCaches()
The unordered fetch caches, tasks in unordered caches have the lowest priority
-
add
Boolean add(String url, Priority13 priority)
-
addAll
Boolean addAll(Iterable<String> urls, Priority13 priority)
-
removeDeceased
Unit removeDeceased()
-
-
-
-