Package ai.platon.pulsar.crawl
Interface CrawlEvent
-
- All Implemented Interfaces:
public interface CrawlEventEvent handlers during the crawl phase of the webpage lifecycle.
-
-
Method Summary
Modifier and Type Method Description abstract CrawlEventchain(CrawlEvent other)Chain the other crawl event handler to the tail of this one. abstract UrlAwareEventHandlergetOnWillLoad()Fire when the url is about to be loaded. abstract UrlAwareEventHandlergetOnLoad()Fire to load the url. abstract UrlAwareWebPageEventHandlergetOnLoaded()Fire when the url is loaded. -
-
Method Detail
-
chain
abstract CrawlEvent chain(CrawlEvent other)
Chain the other crawl event handler to the tail of this one.
-
getOnWillLoad
abstract UrlAwareEventHandler getOnWillLoad()
Fire when the url is about to be loaded.
-
getOnLoad
abstract UrlAwareEventHandler getOnLoad()
Fire to load the url. TODO: better name?
-
getOnLoaded
abstract UrlAwareWebPageEventHandler getOnLoaded()
Fire when the url is loaded.
-
-
-
-