yoavs 2004/05/27 09:09:48 Modified: catalina/src/share/org/apache/coyote/tomcat5 CoyoteConnector.java Log: Added support for threadPriority attribute (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28914). Revision Changes Path 1.43 +28 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteConnector.java Index: CoyoteConnector.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteConnector.java,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- CoyoteConnector.java 24 Apr 2004 14:52:09 -0000 1.42 +++ CoyoteConnector.java 27 May 2004 16:09:48 -0000 1.43 @@ -164,6 +164,12 @@ /** + * The thread priority for processors. + */ + private int threadPriority = Thread.NORM_PRIORITY; + + + /** * Linger value on the incoming connection. * Note : a value inferior to 0 means no linger. */ @@ -772,6 +778,27 @@ setProperty("maxThreads", String.valueOf(maxProcessors)); } + + /** + * Return the processor thread priority. + * + * @return int + */ + public int getThreadPriority() { + return threadPriority; + } + + + /** + * Sets the processor thread priority. + * + * @param threadPriority The new priority level + */ + public void setThreadPriority(int threadPriority) { + this.threadPriority = threadPriority; + setProperty("threadPriority", String.valueOf(threadPriority)); + } + /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]