Package ai.platon.pulsar.skeleton.crawl
Class CrawlLoops
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.StartStopRunnable
public final class CrawlLoops implements StartStopRunnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCrawlLoops.Companion
-
Constructor Summary
Constructors Constructor Description CrawlLoops(CrawlLoop loop)CrawlLoops(List<CrawlLoop> loops)
-
Method Summary
Modifier and Type Method Description BooleanisRunning()final List<CrawlLoop>getLoops()final CrawlLoopfirst()final CrawlLooplast()final <T extends CrawlLoop> TfirstIsInstance()final <T extends CrawlLoop> TlastIsInstance()Unitstart()Start all loops matching the filter if not started. Unitstop()Stop all loops matching the filter if started. Unitawait()-
-
Method Detail
-
firstIsInstance
final <T extends CrawlLoop> T firstIsInstance()
-
lastIsInstance
final <T extends CrawlLoop> T lastIsInstance()
-
-
-
-