T - The type of objects which will be created from this task.D - A sub type of CrawlerUrlDTO which this task will use to
create the result objects.public abstract class AbstractUrlTask<T,D extends CrawlerUrlDTO> extends AbstractRecursivConverterTask<T,D>
RecursiveTask and takes a
ConcurrentLinkedQueue of D. It splits the URLs on instances
of it self based on the crawler configuration and calls the
this#processUrl(CrawlerUrlDTO) for each.crawler, taskResults| Constructor and Description |
|---|
AbstractUrlTask(MediathekReader aCrawler,
java.util.concurrent.ConcurrentLinkedQueue<D> aUrlToCrawlDTOs) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Integer |
getMaxElementsToProcess() |
protected void |
processElement(D aDTO)
Deprecated.
|
compute, createNewOwnInstanceadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkpublic AbstractUrlTask(MediathekReader aCrawler, java.util.concurrent.ConcurrentLinkedQueue<D> aUrlToCrawlDTOs)
protected java.lang.Integer getMaxElementsToProcess()
getMaxElementsToProcess in class AbstractRecursivConverterTask<T,D extends CrawlerUrlDTO>@Deprecated protected void processElement(D aDTO)
AbstractRecursivConverterTaskD to create a object of
the return type T. Add the results to AbstractRecursivConverterTask.taskResults.processElement in class AbstractRecursivConverterTask<T,D extends CrawlerUrlDTO>aDTO - A element to be processed.