Home » activemq-parent-5.3.1-source-release » org.apache » activemq » thread » [javadoc | source]
public class: TaskRunnerFactory [javadoc | source]

All Implemented Interfaces:

Manages the thread pool for long running tasks. Long running tasks are not always active but when they are active, they may need a few iterations of processing for them to become idle. The manager ensures that each task is processes but that no one task overtakes the system. This is kina like cooperative multitasking.
 public TaskRunnerFactory() 
 public TaskRunnerFactory(String name,
    int priority,
    boolean daemon,
    int maxIterationsPerRun,
    boolean dedicatedTaskRunner) 
Method from org.apache.activemq.thread.TaskRunnerFactory Summary:
createDefaultExecutor,   createTaskRunner,   execute,   execute,   shutdown
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.thread.TaskRunnerFactory Detail:
 protected ExecutorService createDefaultExecutor() 
 public TaskRunner createTaskRunner(Task task,
    String name) 
 public  void execute(Runnable runnable) 
 public  void execute(Runnable runnable,
    String name) 
 public  void shutdown()