You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/11/11 13:07:42 UTC
svn commit: r1033907 -
/james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java
Author: norman
Date: Thu Nov 11 12:07:42 2010
New Revision: 1033907
URL: http://svn.apache.org/viewvc?rev=1033907&view=rev
Log:
Move default io worker count to static variable
Modified:
james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java
Modified: james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java?rev=1033907&r1=1033906&r2=1033907&view=diff
==============================================================================
--- james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java (original)
+++ james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java Thu Nov 11 12:07:42 2010
@@ -35,6 +35,7 @@ import org.jboss.netty.channel.socket.ni
*/
public abstract class AbstractAsyncServer {
+ public static final int DEFAULT_IO_WORKER_COUNT = Runtime.getRuntime().availableProcessors() * 2;
private int backlog = 250;
private int port;
@@ -49,7 +50,7 @@ public abstract class AbstractAsyncServe
private ChannelGroup channels = new DefaultChannelGroup();
- private int ioWorker = Runtime.getRuntime().availableProcessors() * 2;
+ private int ioWorker = DEFAULT_IO_WORKER_COUNT;
/**
* Set the ip on which the Server should listen on
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org