|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.taskman.DefaultTaskManager
public class DefaultTaskManager
An instance of this class executes Tasks in a separate thread: a single
thread is shared among multiple tasks.
| Field Summary | |
|---|---|
static long |
DEFAULT_MIN_DELAY
|
| Constructor Summary | |
|---|---|
DefaultTaskManager()
|
|
| Method Summary | |
|---|---|
void |
addTask(TaskContext ctx,
Task task)
Creates an instance of this class. |
void |
shutdown()
Shuts down this instance (task processing halts). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long DEFAULT_MIN_DELAY
| Constructor Detail |
|---|
public DefaultTaskManager()
| Method Detail |
|---|
public void addTask(TaskContext ctx,
Task task)
TaskManager
addTask in interface TaskManagerctx - the TaskContext that provides information about the task
to execute.task - the Task to execute.public void shutdown()
TaskManager
shutdown in interface TaskManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||