Package 

Interface Crawler

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public interface Crawler
     implements AutoCloseable
                        
    • Method Summary

      Modifier and Type Method Description
      abstract Unit await() Wait until all tasks are done.
      abstract Unit onWillLoad(UrlAware url)
      abstract Unit onLoad(UrlAware url)
      abstract Unit onLoaded(UrlAware url, WebPage page)
      abstract Integer getId() The crawl id
      abstract String getName() The crawl name
      abstract Function2<Integer, UrlAware, Duration> getRetryDelayPolicy() Delay policy for retry tasks
      abstract Unit setRetryDelayPolicy(Function2<Integer, UrlAware, Duration> retryDelayPolicy) Delay policy for retry tasks
      • Methods inherited from class ai.platon.pulsar.crawl.Crawler

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait