com.atomikos.icatch.imp.thread
Class TaskManager

java.lang.Object
  extended by com.atomikos.icatch.imp.thread.TaskManager

public class TaskManager
extends Object

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.

Author:
Lars J. Nilsson

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

TaskManager

protected TaskManager()
Method Detail

getInstance

public static final TaskManager getInstance()
Gets the singleton instance.

Returns:

shutdown

public void shutdown()
Notification of shutdown to close all pooled threads.


executeTask

public void executeTask(Runnable task)
Schedules a task for execution by a thread.

Parameters:
task -


Copyright © 2011. All Rights Reserved.