KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > workqueue > AutomaticWorkQueue


1 package org.objectweb.celtix.workqueue;
2
3 public interface AutomaticWorkQueue extends WorkQueue {
4     /**
5      * Initiates an orderly shutdown.
6      * If <code>processRemainingWorkItems</code>
7      * is true, waits for all active items to finish execution before returning, otherwise returns
8      * immediately after removing all non active items from the queue.
9      *
10      * @param processRemainingWorkItems
11      */

12     void shutdown(boolean processRemainingWorkItems);
13     
14     /**
15      * Returns true if this object has been shut down.
16      * @return true if this object has been shut down.
17      */

18     boolean isShutdown();
19 }
20
Popular Tags