tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r965123 - /tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java
Date Sat, 17 Jul 2010 18:24:01 GMT
Author: markt
Date: Sat Jul 17 18:24:01 2010
New Revision: 965123

URL: http://svn.apache.org/viewvc?rev=965123&view=rev
Log:
Expose executor.
Required so Servlet 3 Async implementation can use the container thread pool when a new thread
needs to be dispatched. (e.g. from AsyncContext.start(Runnable)

Modified:
    tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java

Modified: tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java?rev=965123&r1=965122&r2=965123&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ProtocolHandler.java Sat Jul 17 18:24:01 2010
@@ -18,6 +18,7 @@
 package org.apache.coyote;
 
 import java.util.Iterator;
+import java.util.concurrent.Executor;
 
 
 /**
@@ -51,6 +52,12 @@ public interface ProtocolHandler {
 
 
     /**
+     * The executor, provide access to the underlying thread pool.
+     */
+    public Executor getExecutor();
+
+
+    /**
      * Initialise the protocol.
      */
     public void init() throws Exception;



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


Mime
View raw message