Class JWeaverCrawlerImpl

java.lang.Object
org.jweaver.crawler.internal.runner.JWeaverCrawlerImpl
All Implemented Interfaces:
JWeaverCrawler

public final class JWeaverCrawlerImpl extends Object implements JWeaverCrawler
A concrete implementation of JWeaverCrawler providing web crawling functionality.
  • Constructor Details

    • JWeaverCrawlerImpl

      public JWeaverCrawlerImpl(JWeaverBuilderImpl builder)
      Constructs a new JWeaverCrawlerImpl instance.
      Parameters:
      builder - The builder containing necessary parameters to construct the crawler.
  • Method Details

    • run

      public void run()
      Description copied from interface: JWeaverCrawler
      Runs the executions sequentially.

      Consider using JWeaverCrawler.runParallel() for improved performance.

      Specified by:
      run in interface JWeaverCrawler
    • runParallel

      public void runParallel()
      Description copied from interface: JWeaverCrawler
      This should be the preferred choice to run the crawler.

      Runs the different JWeaverTask in parallel using Virtual Threads, crawling multiple uris (of different hosts) concurrently.

      Specified by:
      runParallel in interface JWeaverCrawler