-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.UrlPool
public class ConcurrentUrlPool extends AbstractUrlPool
The global cache
-
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentSkipListMap<Integer, UrlCache>orderedCachesprivate final List<UrlCache>unorderedCachesprivate final UrlCacherealTimeCacheprivate final Queue<DelayUrl>delayCacheprivate 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 ImmutableConfigconf
-
Constructor Summary
Constructors Constructor Description ConcurrentUrlPool(ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description ConcurrentSkipListMap<Integer, UrlCache>getOrderedCaches()The priority fetch caches List<UrlCache>getUnorderedCaches()UrlCachegetRealTimeCache()The real time fetch cache Queue<DelayUrl>getDelayCache()The delayed fetch cache IntegergetTotalItems()UrlCachegetLowestCache()UrlCachegetLower5Cache()UrlCachegetLower4Cache()UrlCachegetLower3Cache()UrlCachegetLower2Cache()UrlCachegetLowerCache()UrlCachegetNormalCache()UrlCachegetHigherCache()UrlCachegetHigher2Cache()UrlCachegetHigher3Cache()UrlCachegetHigher4Cache()UrlCachegetHigher5Cache()UrlCachegetHighestCache()final ImmutableConfiggetConf()Unitinitialize()-
-
Constructor Detail
-
ConcurrentUrlPool
ConcurrentUrlPool(ImmutableConfig conf)
-
-
Method Detail
-
getOrderedCaches
ConcurrentSkipListMap<Integer, UrlCache> getOrderedCaches()
The priority fetch caches
-
getUnorderedCaches
List<UrlCache> getUnorderedCaches()
-
getRealTimeCache
UrlCache getRealTimeCache()
The real time fetch cache
-
getDelayCache
Queue<DelayUrl> getDelayCache()
The delayed fetch cache
-
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()
-
initialize
Unit initialize()
-
-
-
-