-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.config.Parameterized,java.lang.AutoCloseable
public final class LazyFetchTaskManager implements Parameterized, AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLazyFetchTaskManager.Companion
-
Field Summary
Fields Modifier and Type Field Description private final InstantstartTimeprivate final DurationelapsedTime
-
Constructor Summary
Constructors Constructor Description LazyFetchTaskManager(WebDb webDb, CoreMetrics coreMetrics, ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final InstantgetStartTime()final DurationgetElapsedTime()final Set<String>getSeeds(FetchMode mode, Integer limit)final UnitcommitLazyTasks(FetchMode mode, Collection<String> urls, VolatileConfig conf)final Set<CharSequence>getLazyTasks(FetchMode mode)final Set<CharSequence>takeLazyTasks(FetchMode mode, Integer n)final UnitcommitTimeoutTasks(Collection<CharSequence> urls, FetchMode mode)final Set<CharSequence>takeTimeoutTasks(FetchMode mode)Unitclose()-
-
Constructor Detail
-
LazyFetchTaskManager
LazyFetchTaskManager(WebDb webDb, CoreMetrics coreMetrics, ImmutableConfig conf)
-
-
Method Detail
-
getStartTime
final Instant getStartTime()
-
getElapsedTime
final Duration getElapsedTime()
-
commitLazyTasks
final Unit commitLazyTasks(FetchMode mode, Collection<String> urls, VolatileConfig conf)
-
getLazyTasks
final Set<CharSequence> getLazyTasks(FetchMode mode)
-
takeLazyTasks
final Set<CharSequence> takeLazyTasks(FetchMode mode, Integer n)
-
commitTimeoutTasks
final Unit commitTimeoutTasks(Collection<CharSequence> urls, FetchMode mode)
-
takeTimeoutTasks
final Set<CharSequence> takeTimeoutTasks(FetchMode mode)
-
-
-
-