Package ai.platon.pulsar.common.collect
Class AbstractUrlCache
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.UrlCache
public abstract class AbstractUrlCache implements UrlCache
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerpriorityprivate final Queue<UrlAware>nonReentrantQueueprivate final Queue<UrlAware>nReentrantQueueprivate final Queue<UrlAware>reentrantQueueprivate final List<Queue<UrlAware>>queuesprivate final Integersizeprivate final IntegerexternalSizeprivate final IntegerestimatedExternalSizeprivate final IntegerestimatedSize
-
Constructor Summary
Constructors Constructor Description AbstractUrlCache(String name, Integer priority)
-
Method Summary
Modifier and Type Method Description StringgetName()The cache name IntegergetPriority()The priority UnitremoveDeceased()Remove dead urls. Unitclear()Clear the local cache. -
Methods inherited from class ai.platon.pulsar.common.collect.UrlCache
deepClear, getEstimatedExternalSize, getEstimatedSize, getExternalSize, getNReentrantQueue, getNonReentrantQueue, getQueues, getReentrantQueue, getSize -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPriority
Integer getPriority()
The priority
-
removeDeceased
Unit removeDeceased()
Remove dead urls.
-
-
-
-