org.cougaar.core.service.ThreadService
WILL_BLOCK_LANE
- This constant refers to the lane that should be used by threads which are known to block on io. MTS Destination Queue threads currently use this lane.
CPU_INTENSE_LANE
- This constant refers to the lane that should be used by threads which are known to run unusually long [?]. This lane isn’t currently in use.
WELL_BEHAVED_LANE
- This constant refers to the lane that should be used by threads which are known to behave properly, ie not to block and not to run unusually long. The Metric Service threads use this lane.
BEST_EFFORT_LANE
- This constant refers to the lane which should be used by all other threads. This is the initial default lane (for any given Thread Service, the default lane can also be changed dynamically).
-
Schedulable getThread(Object consumer, Runnable runnable, String name, int lane)
- Creates a
Schedulable with the given name and running the given Runnable on behalf of the given consumer (and Object). The Schedulable will be assigned to the given lane.
Schedulable getThread(Object consumer, Runnable runnable, String name)
- Creates a
Schedulable with the given name and running the given Runnable on behalf of the given consumer (and Object). The Schedulable will be assigned to this Thread Service's default lane.
Schedulable getThread(Object consumer, Runnable runnable)
- Creates an anonymous
Schedulable running the given Runnable on behalf of the given consumer (and Object). The Schedulable will be assigned to this Thread Service's default lane.
void schedule(TimerTask task, long delay)
- This is the equivalent of the corresponding call on
java.util.Timer. In fact the current implementation of the Thread Services creates a Timer at each layer and uses that Timer in this method, as well as in the next two methods.THIS METHOD IS DEPRECATED. Use the corresponding schedule on Schedulable instead.
void schedule(TimerTask task, long delay, long interval)
- As above, this is the equivalent of the corresponding call on
java.util.Timer.THIS METHOD IS DEPRECATED. Use the corresponding schedule on Schedulable instead.
void scheduleAtFixedRate(TimerTask task, long delay, long interval)
- As above, this is the equivalent of the corresponding call on
java.util.Timer.THIS METHOD IS DEPRECATED. Use the corresponding schedule on Schedulable instead.