org.cougaar.core.thread.ThreadListener
void threadQueued(Schedulable schedulable, Object consumer)
- Subscribed
ThreadListeners at any given level will receive this callback when any Schedulable is placed on the queue of pending ‘threads’ for that level. The consumer on whose behalf the Schedulable was created is also provided.
void threadDequeued(Schedulable schedulable, Object consumer)
- Subscribed
ThreadListeners at any given level will receive this callback when any Schedulable is popped of the queue of pending ‘threads’ for that level, in preparation for being run. The consumer on whose behalf the Schedulable was created is also provided.
void threadStarted(Schedulable schedulable, Object consumer
- Subscribed
ThreadListeners at any given level will receive this callback when any Schedulable at that level starts running. The consumer on whose behalf the Schedulable was created is also provided.
void threadStopped(Schedulable schedulable, Object consumer)
- Subscribed
ThreadListeners at any given level will receive this callback when any Schedulable at that level stops running. The consumer on whose behalf the Schedulable was created is also provided.
void rightGiven(String consumer);
- Subscribed
ThreadListeners at any given level will receive this callback when the next higher Thread Services have granted this level a “right” for the given thread consumer. No Schedulable has claimed the right at this point so none is passed in the callback.
void rightReturned(String consumer)
- Subscribed
ThreadListeners at any given level will receive this callback when that level returns a “right” to the next higher level. The Schedulable which used the right is already back in the thread pool at this point, so it isn’t passed in the callback.