public class DelayQueueScheduler extends PriorityScheduler
INITIAL_CAPACITYlogger| Constructor and Description |
|---|
DelayQueueScheduler(long time,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
Request |
poll(Task task)
get an url to crawl
|
void |
push(Request request,
Task task)
add a url to fetch
|
getLeftRequestsCount, getTotalRequestsCount, pushWhenNoDuplicategetDuplicateRemover, noNeedToRemoveDuplicate, setDuplicateRemover, shouldReservedpublic DelayQueueScheduler(long time,
TimeUnit timeUnit)
Copyright © 2017. All rights reserved.