-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.UrlCache
public class ConcurrentUrlCache extends AbstractUrlCache
-
-
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 ConcurrentUrlCache(String name, Integer priority)
-
Method Summary
Modifier and Type Method Description ConcurrentNonReentrantQueue<UrlAware>getNonReentrantQueue()A non-reentrant queue accepts the same url only once ConcurrentNEntrantQueue<UrlAware>getNReentrantQueue()A non-reentrant queue accepts the same url for n times at most ConcurrentLinkedQueue<UrlAware>getReentrantQueue()A reentrant queue accepts the same url multiple times StringgetName()The cache name IntegergetPriority()The priority List<Queue<UrlAware>>getQueues()IntegergetSize()IntegergetExternalSize()IntegergetEstimatedExternalSize()IntegergetEstimatedSize()-
Methods inherited from class ai.platon.pulsar.common.collect.ConcurrentUrlCache
clear, removeDeceased -
Methods inherited from class ai.platon.pulsar.common.collect.AbstractUrlCache
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()
A non-reentrant queue accepts the same url only once
-
getNReentrantQueue
ConcurrentNEntrantQueue<UrlAware> getNReentrantQueue()
A non-reentrant queue accepts the same url for n times at most
-
getReentrantQueue
ConcurrentLinkedQueue<UrlAware> getReentrantQueue()
A reentrant queue accepts the same url multiple times
-
getPriority
Integer getPriority()
The priority
-
getExternalSize
Integer getExternalSize()
-
getEstimatedExternalSize
Integer getEstimatedExternalSize()
-
getEstimatedSize
Integer getEstimatedSize()
-
-
-
-