org.apache.activemq.thread
Class TaskRunnerFactory
java.lang.Object
org.apache.activemq.thread.TaskRunnerFactory
public class TaskRunnerFactory
- extends Object
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.
- Version:
- $Revision: 1.5 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskRunnerFactory
public TaskRunnerFactory()
TaskRunnerFactory
public TaskRunnerFactory(String name,
int priority,
boolean daemon,
int maxIterationsPerRun)
TaskRunnerFactory
public TaskRunnerFactory(String name,
int priority,
boolean daemon,
int maxIterationsPerRun,
boolean dedicatedTaskRunner)
shutdown
public void shutdown()
createTaskRunner
public TaskRunner createTaskRunner(Task task,
String name)
createDefaultExecutor
protected ExecutorService createDefaultExecutor()
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.