public class DelayQueueScheduler extends PriorityScheduler
INITIAL_CAPACITY
logger
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, pushWhenNoDuplicate
getDuplicateRemover, noNeedToRemoveDuplicate, setDuplicateRemover, shouldReserved
public DelayQueueScheduler(long time, TimeUnit timeUnit)
Copyright © 2017. All rights reserved.