|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.icatch.imp.thread.TaskManager
public class TaskManager
This singleton manages system executors for several components. This class will check the runtime classes for the 1.5 java.util.concurrent package, if failing that it will look for the 1.4 backport, and failing that revert to a "two threads per transaction" strategy.
Constructor Summary | |
---|---|
protected |
TaskManager()
|
Method Summary | |
---|---|
void |
executeTask(Runnable task)
Schedules a task for execution by a thread. |
static TaskManager |
getInstance()
Gets the singleton instance. |
void |
shutdown()
Notification of shutdown to close all pooled threads. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TaskManager()
Method Detail |
---|
public static final TaskManager getInstance()
public void shutdown()
public void executeTask(Runnable task)
task
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |