01: package org.objectweb.celtix.workqueue;
02:
03: public interface AutomaticWorkQueue extends WorkQueue {
04: /**
05: * Initiates an orderly shutdown.
06: * If <code>processRemainingWorkItems</code>
07: * is true, waits for all active items to finish execution before returning, otherwise returns
08: * immediately after removing all non active items from the queue.
09: *
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: }
|