-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.Loadable,ai.platon.pulsar.common.collect.UrlCache
public final class LoadingUrlCache extends AbstractUrlCache implements Loadable<UrlAware>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLoadingUrlCache.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentNonReentrantLoadingQueuenonReentrantQueueprivate final ConcurrentNEntrantLoadingQueuenReentrantQueueprivate final ConcurrentLoadingQueuereentrantQueueprivate final List<Queue<UrlAware>>queuesprivate final IntegerexternalSizeprivate final IntegerestimatedExternalSizeprivate final ExternalUrlLoaderurlLoaderprivate final Integercapacityprivate final Stringnameprivate final Integerpriorityprivate final Integersizeprivate final IntegerestimatedSize
-
Constructor Summary
Constructors Constructor Description LoadingUrlCache(String name, Integer priority, ExternalUrlLoader urlLoader, Integer capacity)
-
Method Summary
Modifier and Type Method Description ConcurrentNonReentrantLoadingQueuegetNonReentrantQueue()ConcurrentNEntrantLoadingQueuegetNReentrantQueue()ConcurrentLoadingQueuegetReentrantQueue()List<Queue<UrlAware>>getQueues()IntegergetExternalSize()IntegergetEstimatedExternalSize()final ExternalUrlLoadergetUrlLoader()The external url loader final IntegergetCapacity()The cache capacity StringgetName()IntegergetPriority()The priority IntegergetSize()IntegergetEstimatedSize()Unitload()Collection<UrlAware>loadNow()UnitdeepClear()-
-
Constructor Detail
-
LoadingUrlCache
LoadingUrlCache(String name, Integer priority, ExternalUrlLoader urlLoader, Integer capacity)
-
-
Method Detail
-
getNonReentrantQueue
ConcurrentNonReentrantLoadingQueue getNonReentrantQueue()
-
getNReentrantQueue
ConcurrentNEntrantLoadingQueue getNReentrantQueue()
-
getReentrantQueue
ConcurrentLoadingQueue getReentrantQueue()
-
getExternalSize
Integer getExternalSize()
-
getEstimatedExternalSize
Integer getEstimatedExternalSize()
-
getUrlLoader
final ExternalUrlLoader getUrlLoader()
The external url loader
-
getCapacity
final Integer getCapacity()
The cache capacity
-
getPriority
Integer getPriority()
The priority
-
getEstimatedSize
Integer getEstimatedSize()
-
loadNow
Collection<UrlAware> loadNow()
-
-
-
-