Changeset df7f390 for backend/GlobeGuru-backend/src/main/java/Scraper.java
Legend:
- Unmodified
- Added
- Removed
-
backend/GlobeGuru-backend/src/main/java/Scraper.java
r0a7426e rdf7f390 14 14 15 15 private List<String> urls; 16 private ConcurrentLinkedQueue<Option> optionsQueue;17 16 private CountDownLatch latch; 18 17 19 18 public Scraper() { 20 19 urls = new ArrayList<>(); 21 this.optionsQueue = new ConcurrentLinkedQueue<>();22 20 ObjectMapper mapper = new ObjectMapper(); 23 21 try { … … 44 42 System.out.println("Scraper has started "); 45 43 for (String url : urls) { 46 new ScraperThread(url, optionsQueue,latch).start();44 new ScraperThread(url, latch).start(); 47 45 } 48 46 return null;
Note:
See TracChangeset
for help on using the changeset viewer.