Class FIFOTaskPlanner

java.lang.Object
org.gvsig.remoteclient.taskplanning.FIFOTaskPlanner
All Implemented Interfaces:
ITaskPlanner

public class FIFOTaskPlanner extends Object implements ITaskPlanner
A simple FIFO task planner. The tasks returned by this planner are executed enterely. It does not issue another task until the current is finished.
Author:
jaume
  • Constructor Details

    • FIFOTaskPlanner

      public FIFOTaskPlanner(IQueue queue)
      Creates a new instance of FIFOTaskPlanner that will work against the queue passed as paramenter
      Parameters:
      queue - , the IQueue to be planned
  • Method Details

    • nextTask

      public IRunnableTask nextTask()
      Description copied from interface: ITaskPlanner
      Takes the next task to be executed.
      Specified by:
      nextTask in interface ITaskPlanner
      Returns:
      IRunnableTask representing the next task to be executed
    • previousTask

      public IRunnableTask previousTask()
      FIFO plans have no previous tasks so, null is always returned.
      Specified by:
      previousTask in interface ITaskPlanner
      Returns:
      IRunnableTask representing the previous executed task, or null if none.