| 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 ITaskPlanner getTaskPlanner()
IQueuegetTaskPlanner in interface IQueuepublic java.util.Vector getTasks()
IQueueprotected URLRetrieveTask getURLPreviousRequest(URLRequest request)
public boolean isEmpty()
IQueuepublic void pause()
IQueuepublic IRunnableTask put(IRunnableTask task)
IQueuepublic void resume()
IQueuepublic void setTaskPlanner(ITaskPlanner planner)
IQueuesetTaskPlanner in interface IQueuepublic IRunnableTask take()
IQueueCopyright © 2017 gvSIG Association. All Rights Reserved.