public interface UriQueue
| Modifier and Type | Method and Description |
|---|---|
void |
addUri(CrawleableUri uri)
Adds the given
CrawleableUri instance to the queue. |
void |
close()
Close RDB connection, destroy the database.
|
List<CrawleableUri> |
getNextUris()
Returns the next chunk of URIs that should be crawled or null.
|
boolean |
isEmpty()
Returns true is the queue is empty
|
void |
open()
Open RDB connection, init the database.
|
void addUri(CrawleableUri uri)
CrawleableUri instance to the queue.uri - the CrawleableUri instance that should be added to the
queue.List<CrawleableUri> getNextUris()
boolean isEmpty()
void close()
void open()
Copyright © 2017–2019. All rights reserved.