You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ni...@apache.org on 2013/06/28 16:36:18 UTC

svn commit: r1497792 - /cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java

Author: ningjiang
Date: Fri Jun 28 14:36:18 2013
New Revision: 1497792

URL: http://svn.apache.org/r1497792
Log:
CXF-5042 added the missing file of ThreadingParameters

Modified:
    cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java

Modified: cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java?rev=1497792&r1=1497791&r2=1497792&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java (original)
+++ cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java Fri Jun 28 14:36:18 2013
@@ -20,47 +20,25 @@ package org.apache.cxf.transport.http.ne
 
 /**
  * This class holds a structure that contains parameters
- * pertaining to the threading of a Jetty HTTP Server Engine.
+ * pertaining to the threading of a Netty HTTP Server Engine.
  */
 public class ThreadingParameters {
 
-    private int threadPoolSize;
-    private int minThreads;
-    private int maxThreads;
-    private boolean minThreadsSet;
-    private boolean maxThreadsSet;
+    private int threadPoolSize = 200;
+    private boolean threadPoolSizeSet;
     
-    public void setMinThreads(int number) {
-        minThreadsSet = true;
-        minThreads = number;
-    }
-    
-    public void setMaxThreads(int number) {
-        maxThreadsSet = true;
-        maxThreads = number;
-    }
-    
-    public int getMinThreads() {
-        return minThreads;
-    }
-    
-    public int getMaxThreads() {
-        return maxThreads;
-    }
     
-    public boolean isSetMaxThreads() {
-        return maxThreadsSet;
+    public void setThreadPoolSize(int number) {
+        threadPoolSizeSet = true;
+        threadPoolSize = number;
     }
     
-    public boolean isSetMinThreads() {
-        return minThreadsSet;
-    }
-
     public int getThreadPoolSize() {
         return threadPoolSize;
     }
-
-    public void setThreadPoolSize(int threadPoolSize) {
-        this.threadPoolSize = threadPoolSize;
+    
+    public boolean isSeThreadPoolSize() {
+        return threadPoolSizeSet;
     }
+    
 }