|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Thread pool components manage a number of Threads that can be used to
execute miscellaneous tasks.
Copyright 2002 Sapient
Method Summary | |
TaskInfo |
execute(Runnable task,
String taskName)
Queues a task for execution. |
TaskInfo |
execute(Runnable task,
String taskName,
TaskCallback callback)
Queues a task for execution. |
List |
getFailedTasks()
Gets a read-only list of the tasks that failed during execution |
Integer |
getPoolSize()
Gets the number of executions threads in the pool |
Integer |
getQueueSize()
Gets the number of tasks currently in the queue. |
Method Detail |
public TaskInfo execute(Runnable task, String taskName)
task
- the Runnable object that will be executedtaskName
- the name of the task, used for logging and tracking
public TaskInfo execute(Runnable task, String taskName, TaskCallback callback)
task
- the Runnable object that will be executedtaskName
- the name of the task, used for logging and trackingcallback
- the callback object that will be called when the task
completes
public Integer getQueueSize()
public Integer getPoolSize()
public List getFailedTasks()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |