Updated to worldwind release 20070817
[worldwind-tracker.git] / gov / nasa / worldwind / util / TaskService.java
blob7e7cdbb9b5f0dfdd449ab19eda457f5a5104cbf2
1 /*
2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
5 All Rights Reserved.
6 */
7 package gov.nasa.worldwind.util;
9 /**
10 * @author tag
11 * @version $Id: TaskService.java 2455 2007-07-28 00:32:43Z tgaskins $
13 public interface TaskService
15 void shutdown(boolean immediately);
17 boolean contains(Runnable runnable);
19 /**
20 * Enqueues a task to run.
22 * @param runnable the task to add
23 * @throws IllegalArgumentException if <code>runnable</code> is null
25 void addTask(Runnable runnable);
27 boolean isFull();
29 boolean hasActiveTasks();