-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.FetchCache
public abstract class AbstractFetchCache implements FetchCache
-
-
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 AbstractFetchCache(String name, Integer priority)
-
Method Summary
Modifier and Type Method Description StringgetName()IntegergetPriority()The priority abstract Queue<UrlAware>getNonReentrantQueue()abstract Queue<UrlAware>getNReentrantQueue()abstract Queue<UrlAware>getReentrantQueue()List<Queue<UrlAware>>getQueues()IntegergetSize()IntegergetExternalSize()IntegergetEstimatedExternalSize()IntegergetEstimatedSize()UnitremoveDeceased()Unitclear()-
-
Method Detail
-
getPriority
Integer getPriority()
The priority
-
getNonReentrantQueue
abstract Queue<UrlAware> getNonReentrantQueue()
-
getNReentrantQueue
abstract Queue<UrlAware> getNReentrantQueue()
-
getReentrantQueue
abstract Queue<UrlAware> getReentrantQueue()
-
getExternalSize
Integer getExternalSize()
-
getEstimatedExternalSize
Integer getEstimatedExternalSize()
-
getEstimatedSize
Integer getEstimatedSize()
-
removeDeceased
Unit removeDeceased()
-
-
-
-