-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.FetchCache
public class ConcurrentFetchCache extends AbstractFetchCache
-
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentNonReentrantQueue<UrlAware>nonReentrantQueueprivate final ConcurrentNEntrantQueue<UrlAware>nReentrantQueueprivate final ConcurrentLinkedQueue<UrlAware>reentrantQueueprivate final Stringnameprivate final Integerpriorityprivate final List<Queue<UrlAware>>queuesprivate final Integersizeprivate final IntegerexternalSizeprivate final IntegerestimatedExternalSizeprivate final IntegerestimatedSize
-
Constructor Summary
Constructors Constructor Description ConcurrentFetchCache(String name, Integer priority)
-
Method Summary
Modifier and Type Method Description ConcurrentNonReentrantQueue<UrlAware>getNonReentrantQueue()ConcurrentNEntrantQueue<UrlAware>getNReentrantQueue()ConcurrentLinkedQueue<UrlAware>getReentrantQueue()StringgetName()IntegergetPriority()The priority List<Queue<UrlAware>>getQueues()IntegergetSize()IntegergetExternalSize()IntegergetEstimatedExternalSize()IntegergetEstimatedSize()-
Methods inherited from class ai.platon.pulsar.common.collect.ConcurrentFetchCache
clear, removeDeceased -
Methods inherited from class ai.platon.pulsar.common.collect.AbstractFetchCache
deepClear -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getNonReentrantQueue
ConcurrentNonReentrantQueue<UrlAware> getNonReentrantQueue()
-
getNReentrantQueue
ConcurrentNEntrantQueue<UrlAware> getNReentrantQueue()
-
getReentrantQueue
ConcurrentLinkedQueue<UrlAware> getReentrantQueue()
-
getPriority
Integer getPriority()
The priority
-
getExternalSize
Integer getExternalSize()
-
getEstimatedExternalSize
Integer getEstimatedExternalSize()
-
getEstimatedSize
Integer getEstimatedSize()
-
-
-
-