Author: ron.sigal(a)jboss.com
Date: 2011-03-19 17:14:48 -0400 (Sat, 19 Mar 2011)
New Revision: 6287
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/BisocketServerInvoker.java
Log:
JBREM-1277: Add secondary accept thread priority configuration option.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/BisocketServerInvoker.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/BisocketServerInvoker.java 2011-03-19
21:04:36 UTC (rev 6286)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/BisocketServerInvoker.java 2011-03-19
21:14:48 UTC (rev 6287)
@@ -270,9 +270,10 @@
Thread t = new SecondaryServerSocketThread(secondaryServerSocket);
t.setName("secondaryServerSocketThread[" + i++ + "]");
t.setDaemon(true);
+ t.setPriority(Thread.NORM_PRIORITY + acceptThreadPriorityIncrement);
t.start();
secondaryServerSocketThreads.add(t);
- log.debug(this + " created " + t);
+ log.debug(this + " created " + t + " with priority " +
t.getPriority());
}
if (getLocator().isMultihome())