public class FetchItemQueue extends Object
Constructor and Description |
---|
FetchItemQueue(Configuration conf,
int maxThreads,
long crawlDelay,
long minCrawlDelay) |
Modifier and Type | Method and Description |
---|---|
void |
addFetchItem(FetchItem it) |
void |
addInProgressFetchItem(FetchItem it) |
void |
dump() |
int |
emptyQueue() |
void |
finishFetchItem(FetchItem it,
boolean asap) |
FetchItem |
getFetchItem() |
int |
getInProgressSize() |
int |
getQueueSize() |
int |
incrementExceptionCounter() |
public FetchItemQueue(Configuration conf, int maxThreads, long crawlDelay, long minCrawlDelay)
public int emptyQueue()
public int getQueueSize()
public int getInProgressSize()
public int incrementExceptionCounter()
public void finishFetchItem(FetchItem it, boolean asap)
public void addFetchItem(FetchItem it)
public void addInProgressFetchItem(FetchItem it)
public FetchItem getFetchItem()
public void dump()
Copyright © 2016 The Apache Software Foundation