activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r634421 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/TaskRunnerFactory.java
Date Thu, 06 Mar 2008 21:29:25 GMT
Author: rajdavies
Date: Thu Mar  6 13:29:22 2008
New Revision: 634421

URL: http://svn.apache.org/viewvc?rev=634421&view=rev
Log:
open up to more Configuration

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/TaskRunnerFactory.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/TaskRunnerFactory.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/TaskRunnerFactory.java?rev=634421&r1=634420&r2=634421&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/TaskRunnerFactory.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/TaskRunnerFactory.java
Thu Mar  6 13:29:22 2008
@@ -42,8 +42,13 @@
     public TaskRunnerFactory() {
         this("ActiveMQ Task", Thread.NORM_PRIORITY, true, 1000);
     }
-
+    
     public TaskRunnerFactory(String name, int priority, boolean daemon, int maxIterationsPerRun)
{
+    	this(name,priority,daemon,maxIterationsPerRun,false);
+    }
+
+
+    public TaskRunnerFactory(String name, int priority, boolean daemon, int maxIterationsPerRun,
boolean dedicatedTaskRunner) {
 
         this.name = name;
         this.priority = priority;
@@ -54,7 +59,7 @@
         // avoid
         // using a thread pool to run tasks and use a DedicatedTaskRunner
         // instead.
-        if ("true".equals(System.getProperty("org.apache.activemq.UseDedicatedTaskRunner")))
{
+        if (dedicatedTaskRunner || "true".equals(System.getProperty("org.apache.activemq.UseDedicatedTaskRunner")))
{
             executor = null;
         } else {
             executor = createDefaultExecutor();



Mime
View raw message