| Constructor and Description |
|---|
RetrieveQueue(java.lang.String hName) |
| Modifier and Type | Method and Description |
|---|---|
ITaskPlanner |
getTaskPlanner()
Returns the task planner currently defined by this queue.
|
java.util.Vector |
getTasks()
Returns the set of tasks in a Vector (thread-safe).
|
protected URLRetrieveTask |
getURLPreviousRequest(URLRequest request) |
boolean |
isEmpty()
Returns true if the Queue has no (more) jobs to do.
|
void |
pause()
Causes the execution of this queue to be paused.
|
IRunnableTask |
put(IRunnableTask task)
Adds a new task to the queue.
|
void |
resume()
Causes the execution of this queue to be resumed.
|
void |
setTaskPlanner(ITaskPlanner planner)
Sets the TaskPlanner that will decide which of the tasks in the queue will
be executed next.
|
IRunnableTask |
take()
Returns the next task by calling the task planner's nextTask() method.
|
public IRunnableTask put(IRunnableTask task)
IQueuepublic IRunnableTask take()
IQueuepublic boolean isEmpty()
IQueuepublic ITaskPlanner getTaskPlanner()
IQueuegetTaskPlanner in interface IQueuepublic void setTaskPlanner(ITaskPlanner planner)
IQueuesetTaskPlanner in interface IQueuepublic void pause()
IQueuepublic void resume()
IQueuepublic java.util.Vector getTasks()
IQueueprotected URLRetrieveTask getURLPreviousRequest(URLRequest request)