-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.collector.DataCollector,kotlin.Comparable
public interface PriorityDataCollector<T extends Object> implements DataCollector<T>, Comparable<PriorityDataCollector<T>>
-
-
Method Summary
Modifier and Type Method Description IntegercompareTo(PriorityDataCollector<T> other)abstract IntegergetPriority()abstract IntegergetId()abstract StringgetName()The collector name abstract UnitsetName(String name)The collector name abstract Set<String>getLabels()The collector name abstract StringgetLang()Required website language abstract StringgetCountry()Required website country abstract StringgetDistrict()Required website district abstract IntegergetCapacity()The collector cache capacity. abstract IntegergetSize()abstract IntegergetExternalSize()abstract IntegergetEstimatedSize()abstract IntegergetEstimatedExternalSize()abstract IntegergetCollectCount()abstract IntegergetCollectedCount()abstract InstantgetCreateTime()abstract InstantgetFirstCollectTime()abstract InstantgetLastCollectedTime()abstract DurationgetCollectTime()abstract InstantgetDeadTime()BooleangetIsDead()-
Methods inherited from class ai.platon.pulsar.common.collect.collector.PriorityDataCollector
clear, collectTo, collectTo, collectTo, collectTo, deepClear, dump, hasMore -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
compareTo
Integer compareTo(PriorityDataCollector<T> other)
-
getPriority
abstract Integer getPriority()
-
getCountry
abstract String getCountry()
Required website country
-
getDistrict
abstract String getDistrict()
Required website district
-
getCapacity
abstract Integer getCapacity()
The collector cache capacity. At most capacity items can be collected to the cache from the source
-
getExternalSize
abstract Integer getExternalSize()
-
getEstimatedSize
abstract Integer getEstimatedSize()
-
getEstimatedExternalSize
abstract Integer getEstimatedExternalSize()
-
getCollectCount
abstract Integer getCollectCount()
-
getCollectedCount
abstract Integer getCollectedCount()
-
getCreateTime
abstract Instant getCreateTime()
-
getFirstCollectTime
abstract Instant getFirstCollectTime()
-
getLastCollectedTime
abstract Instant getLastCollectedTime()
-
getCollectTime
abstract Duration getCollectTime()
-
getDeadTime
abstract Instant getDeadTime()
-
-
-
-