Class RetrieveQueue
java.lang.Object
org.gvsig.remoteclient.taskplanning.retrieving.RetrieveQueue
- All Implemented Interfaces:
IQueue
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es Luis W. Sevilla (sevilla_lui@gva.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the task planner currently defined by this queue.getTasks()Returns the set of tasks in a Vector (thread-safe).protected URLRetrieveTaskgetURLPreviousRequest(URLRequest request) booleanisEmpty()Returns true if the Queue has no (more) jobs to do.voidpause()Causes the execution of this queue to be paused.put(IRunnableTask task) Adds a new task to the queue.voidresume()Causes the execution of this queue to be resumed.voidsetTaskPlanner(ITaskPlanner planner) Sets the TaskPlanner that will decide which of the tasks in the queue will be executed next.take()Returns the next task by calling the task planner's nextTask() method.
-
Constructor Details
-
RetrieveQueue
-
-
Method Details
-
put
Description copied from interface:IQueueAdds a new task to the queue. The place where the new task will be put its left to the concrete implementation of this interface. -
take
Description copied from interface:IQueueReturns the next task by calling the task planner's nextTask() method. -
isEmpty
public boolean isEmpty()Description copied from interface:IQueueReturns true if the Queue has no (more) jobs to do. -
getTaskPlanner
Description copied from interface:IQueueReturns the task planner currently defined by this queue.- Specified by:
getTaskPlannerin interfaceIQueue- Returns:
- ITaskPlanner
-
setTaskPlanner
Description copied from interface:IQueueSets the TaskPlanner that will decide which of the tasks in the queue will be executed next. A null value should represent a FIFO planner.- Specified by:
setTaskPlannerin interfaceIQueue- Parameters:
planner-
-
pause
public void pause()Description copied from interface:IQueueCauses the execution of this queue to be paused. The task currently in execution finishes and after it the planner will not issue more tasks until resume() is invoked. -
resume
public void resume()Description copied from interface:IQueueCauses the execution of this queue to be resumed. The execution will continue with the next task issued by the planner. It has no effect if the queue was not paused yet. -
getTasks
Description copied from interface:IQueueReturns the set of tasks in a Vector (thread-safe). -
getURLPreviousRequest
-