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)
IQueue
public IRunnableTask take()
IQueue
public boolean isEmpty()
IQueue
public ITaskPlanner getTaskPlanner()
IQueue
getTaskPlanner
in interface IQueue
public void setTaskPlanner(ITaskPlanner planner)
IQueue
setTaskPlanner
in interface IQueue
public void pause()
IQueue
public void resume()
IQueue
public java.util.Vector getTasks()
IQueue
protected URLRetrieveTask getURLPreviousRequest(URLRequest request)