org.apache.activemq.thread
Class TaskRunnerFactory
java.lang.Object
org.apache.activemq.thread.TaskRunnerFactory
- All Implemented Interfaces:
- Executor
public class TaskRunnerFactory
- extends Object
- implements Executor
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,
boolean dedicatedTaskRunner)
shutdown
public void shutdown()
createTaskRunner
public TaskRunner createTaskRunner(Task task,
String name)
execute
public void execute(Runnable runnable)
- Specified by:
execute
in interface Executor
execute
public void execute(Runnable runnable,
String name)
createDefaultExecutor
protected ExecutorService createDefaultExecutor()
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.