Package mapwriter.tasks

Examples of mapwriter.tasks.Task


  // Pop a Task entry from the task queue and check if the task's thread has finished.
  // If it has completed then call onComplete for the task.
  // If it has not completed then push the task back on the queue.
  public boolean processTaskQueue() {
    boolean processed = false;
    Task task = this.taskQueue.poll();
    if (task != null) {
      if (task.isDone()) {
        task.printException();
        task.onComplete();
        processed = true;
      } else {
        // put entry back on top of queue
        this.taskQueue.push(task);
      }
View Full Code Here

TOP

Related Classes of mapwriter.tasks.Task

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.