| org.cougaar.core.plugin.ComponentPlugin org.cougaar.core.plugin.ParameterizedPlugin org.cougaar.core.plugin.AnnotatedSubscriptionsPlugin org.cougaar.core.plugin.TodoPlugin
TodoPlugin | public class TodoPlugin extends AnnotatedSubscriptionsPlugin (Code) | | Adds a
TodoSubscription to an AnnotatedSubscriptionsPlugin. The items
on this subscription should be considered as work to do, in the form of a
Runnable, rather than as data. Work can be added with one of the executeLater
methods, which are modeled after Swing's invokeLater.
For convenience there are also predefined methods for adding work that just
does a single publishAdd/Remove/Change of some
UniqueObject .
|
execute | protected void execute()(Code) | | |
executeLater | public void executeLater(Runnable work)(Code) | | Add some work to the TodoSubscription. The actual running happens in the
execute thread.
Parameters: work - The work to be performed in the execute thread |
executeLater | public Alarm executeLater(long delayMillis, Runnable work)(Code) | | Add some work to the TodoSubscription after a delay. The actual running
happens in the execute thread.
Parameters: delayMillis - How long to delay. If <= 0, the add happens immediately. Parameters: work - The work to be performed in the execute thread the Alarm used for the delay, or null if no delay. The Alarm can becancelled by the caller to prevent the work from happening. |
setupSubscriptions | protected void setupSubscriptions()(Code) | | |
|
|