All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mServer.crawler.sender.orf.tasks.AbstractUrlTask Maven / Gradle / Ivy

There is a newer version: 3.1.64
Show newest version
package mServer.crawler.sender.orf.tasks;

import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.RecursiveTask;
import mServer.crawler.sender.MediathekReader;
import mServer.crawler.sender.orf.CrawlerUrlDTO;

/**
 * This task is based on {@link RecursiveTask} and takes a
 * {@link ConcurrentLinkedQueue} of {@link D}. It splits the URLs on instances
 * of it self based on the crawler configuration and calls the
 * {@link this#processUrl(CrawlerUrlDTO)} for each.
 *
 * @author Nicklas Wiegandt (Nicklas2751)
* Mail: [email protected]
* Jabber: [email protected]
* Riot.im: nicklas2751:matrix.elaon.de
* * @param The type of objects which will be created from this task. * @param A sub type of {@link CrawlerUrlDTO} which this task will use to * create the result objects. */ public abstract class AbstractUrlTask extends AbstractRecursivConverterTask { private static final long serialVersionUID = -4077156510484515410L; public AbstractUrlTask(final MediathekReader aCrawler, final ConcurrentLinkedQueue aUrlToCrawlDTOs) { super(aCrawler, aUrlToCrawlDTOs); } @Override protected Integer getMaxElementsToProcess() { return 100; } @Deprecated protected void processElement(final D aDTO) { processElement(aDTO); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy