Class JobQueue

java.lang.Object
org.oscim.layers.tile.JobQueue

public class JobQueue extends Object
A JobQueue keeps the list of pending jobs for a MapView and prioritizes them.
  • Constructor Details

    • JobQueue

      public JobQueue()
  • Method Details

    • setJobs

      public void setJobs(MapTile[] tiles)
      Parameters:
      tiles - the jobs to be added to this queue.
    • clear

      public void clear()
      Removes all jobs from this queue.
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if this queue contains no jobs, false otherwise.
    • poll

      public MapTile poll()
      Returns:
      the most important job from this queue or null, if empty.