Class ConcurrentNEntrantLoadingQueue
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.collect.Loadable,ai.platon.pulsar.common.collect.queue.LoadingQueue,java.util.Queue,kotlin.collections.Collection,kotlin.collections.Iterable,kotlin.collections.MutableCollection,kotlin.collections.MutableIterable
public final class ConcurrentNEntrantLoadingQueue extends DelayLoadingQueue
-
-
Field Summary
Fields Modifier and Type Field Description private final Integernprivate final Durationttlprivate final DurationidleTimeprivate final BooleanisIdleprivate final BooleanisBusyprivate final DurationadjustedEstimateDelayprivate final BooleanisExpiredprivate final IntegerestimatedExternalSizeprivate DurationloadDelayprivate DurationestimateDelayprivate final IntegerloadCountprivate final IntegersavedCountprivate final Collection<UrlAware>cacheprivate final Integersizeprivate final IntegerexternalSizeprivate final IntegerestimatedSizeprivate final IntegerfreeSlotsprivate final BooleanisFullprivate final ExternalUrlLoaderloaderprivate final UrlTopictopicprivate final Function1<UrlAware, UrlAware>transformer
-
Constructor Summary
Constructors Constructor Description ConcurrentNEntrantLoadingQueue(ExternalUrlLoader loader, UrlTopic topic, Integer n, Duration ttl, Function1<UrlAware, UrlAware> transformer)
-
Method Summary
Modifier and Type Method Description final IntegergetN()final DurationgetTtl()final IntegercountHistory(UrlAware url)final IntegercountHistory(Integer hashCode)Booleanoffer(UrlAware url)-
Methods inherited from class ai.platon.pulsar.common.collect.queue.DelayLoadingQueue
expire, getAdjustedEstimateDelay, getEstimateDelay, getEstimatedExternalSize, getIdleTime, getLoadDelay, isBusy, isExpired, isExpired, isIdle, load, load, loadNow, peek, poll, setEstimateDelay, setLoadDelay -
Methods inherited from class ai.platon.pulsar.common.collect.queue.AbstractLoadingQueue
add, addAll, clear, deepClear, externalClear, getCache, getEstimatedSize, getExternalSize, getFreeSlots, getLoadCount, getLoader, getSavedCount, getSize, getTopic, getTransformer, isFull, iterator, overflow, overflow, removeIf, shuffle -
Methods inherited from class java.util.AbstractQueue
element, remove -
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString -
Methods inherited from class kotlin.collections.Iterable
forEach -
Methods inherited from class kotlin.collections.Collection
parallelStream, spliterator, stream, toArray -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
countHistory
@Synchronized() final Integer countHistory(UrlAware url)
-
countHistory
@Synchronized() final Integer countHistory(Integer hashCode)
-
offer
@Synchronized() Boolean offer(UrlAware url)
-
-
-
-