/* Copyright (C) 2001, 2006 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. */ package gov.nasa.worldwind.util; /** * @author tag * @version $Id: TaskService.java 2455 2007-07-28 00:32:43Z tgaskins $ */ public interface TaskService { void shutdown(boolean immediately); boolean contains(Runnable runnable); /** * Enqueues a task to run. * * @param runnable the task to add * @throws IllegalArgumentException if <code>runnable</code> is null */ void addTask(Runnable runnable); boolean isFull(); boolean hasActiveTasks(); }