Ignore:
Timestamp:
01/13/25 14:18:51 (2 days ago)
Author:
Kristijan <kristijanzafirovski26@…>
Branches:
master
Parents:
0a7426e
Message:

Added frontend functionality for changes and refactored code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • backend/GlobeGuru-backend/src/main/java/Scraper.java

    r0a7426e rdf7f390  
    1414
    1515    private List<String> urls;
    16     private ConcurrentLinkedQueue<Option> optionsQueue;
    1716    private CountDownLatch latch;
    1817
    1918    public Scraper() {
    2019        urls = new ArrayList<>();
    21         this.optionsQueue = new ConcurrentLinkedQueue<>();
    2220        ObjectMapper mapper = new ObjectMapper();
    2321        try {
     
    4442        System.out.println("Scraper has started ");
    4543        for (String url : urls) {
    46             new ScraperThread(url, optionsQueue, latch).start();
     44            new ScraperThread(url, latch).start();
    4745        }
    4846        return null;
Note: See TracChangeset for help on using the changeset viewer.