| java.lang.Object org.cougaar.lib.web.micro.mts.TodoQueue
TodoQueue | abstract public class TodoQueue (Code) | | A simple "todo" queue for processing work in a pooled thread.
Should repackage into org.cougaar.core.util .
The blackboard equivalent should use a dummy subscription to hold
onto queued items and present a "getAddedList()" interface.
|
Method Summary | |
public void | add(Object o) Add work to do in our asynchronous "doNow" callback. | abstract protected void | doNow(Object o) Do previously queued work in our single-threaded pooled thread. |
add | public void add(Object o)(Code) | | Add work to do in our asynchronous "doNow" callback.
Parameters: o - any object, such as a Runnable |
doNow | abstract protected void doNow(Object o)(Code) | | Do previously queued work in our single-threaded pooled thread.
Parameters: o - an object passed into TodoQueue.add(Object). |
|
|