tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r978840 [2/2] - in /tomcat/trunk/java/org/apache/catalina: core/ ha/session/ manager/ realm/ servlets/ session/ ssi/ startup/ tribes/group/interceptors/ tribes/membership/ tribes/transport/bio/ tribes/transport/nio/ tribes/util/
Date Sat, 24 Jul 2010 10:17:46 GMT
Modified: tomcat/trunk/java/org/apache/catalina/tribes/util/ExecutorFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/util/ExecutorFactory.java?rev=978840&r1=978839&r2=978840&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/util/ExecutorFactory.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/util/ExecutorFactory.java Sat Jul 24 10:17:45
2010
@@ -27,21 +27,21 @@ import java.util.concurrent.TimeUnit;
 
 public class ExecutorFactory {
 
-	public static ExecutorService newThreadPool(int minThreads, int maxThreads, long maxIdleTime,
TimeUnit unit) {
-		TaskQueue taskqueue = new TaskQueue();
-		ThreadPoolExecutor service = new ThreadPoolExecutor(minThreads, maxThreads, maxIdleTime,
unit,taskqueue);
-		taskqueue.setParent(service);
-		return service;		
-	}
-
-	public static ExecutorService newThreadPool(int minThreads, int maxThreads, long maxIdleTime,
TimeUnit unit, ThreadFactory threadFactory) {
-		TaskQueue taskqueue = new TaskQueue();
-		ThreadPoolExecutor service = new ThreadPoolExecutor(minThreads, maxThreads, maxIdleTime,
unit,taskqueue, threadFactory);
-		taskqueue.setParent(service);
-		return service;
-	}
-	
-	 // ---------------------------------------------- TaskQueue Inner Class
+    public static ExecutorService newThreadPool(int minThreads, int maxThreads, long maxIdleTime,
TimeUnit unit) {
+        TaskQueue taskqueue = new TaskQueue();
+        ThreadPoolExecutor service = new ThreadPoolExecutor(minThreads, maxThreads, maxIdleTime,
unit,taskqueue);
+        taskqueue.setParent(service);
+        return service;
+    }
+
+    public static ExecutorService newThreadPool(int minThreads, int maxThreads, long maxIdleTime,
TimeUnit unit, ThreadFactory threadFactory) {
+        TaskQueue taskqueue = new TaskQueue();
+        ThreadPoolExecutor service = new ThreadPoolExecutor(minThreads, maxThreads, maxIdleTime,
unit,taskqueue, threadFactory);
+        taskqueue.setParent(service);
+        return service;
+    }
+    
+     // ---------------------------------------------- TaskQueue Inner Class
     private static class TaskQueue extends LinkedBlockingQueue<Runnable> {
         ThreadPoolExecutor parent = null;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message